Changeset 11
- Timestamp:
- Aug 11, 2007, 12:04:22 AM (17 years ago)
- Files:
-
- 4 added
- 2 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
administrace/SubFiles/LoginMaster.php
r5 r11 1 1 <?php 2 3 require_once('../../config.php'); 4 2 5 $User = $_POST['user']; 3 6 $Pass = $_POST['pass']; 4 7 5 8 include 'SubFiles/DatabaseConection.php'; 6 $Database = new Database( 'localhost','root','gurubashi'); // dodìlat IP9 $Database = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword); 7 10 $Database->SelectDatabase('wow'); 8 11 -
administrace/borec/GMlog.php
r5 r11 1 1 <?php 2 include '../SubFiles/TestLicence.php'; 2 3 $GmCommandsLogFile = '/a/log/gm_commands.log'; 4 include('../SubFiles/TestLicence.php'); 3 5 ?> 4 6 <TABLE width="100%" border="0"> … … 7 9 <TD width="100%" valign="top"> 8 10 9 <? 11 <?php 12 $File = fopen($GmCommandsLogFile, 'r'); 13 if($File) 14 { 15 while(!feof($File)) echo(substr(fgets($File), 0).'<br>'); 16 fclose($File); 17 } 10 18 11 $File = fopen('c:\Mangos\Used_GM_Commands.log', 'r');12 fgets($File);13 while(!feof($File))14 echo(substr(fgets($File), 0).'<br>');15 19 ?> 20 16 21 </table> -
administrace/borec/zaznamPovolenychRegistraci.php
r5 r11 1 1 <?php 2 include '../SubFiles/TestLicence.php'; 2 include '../SubFiles/TestLicence.php'; 3 include('../../config.php'); 3 4 ?> 4 5 <TABLE width="100%" border="0"> … … 7 8 <TD width="100%" valign="top"> 8 9 9 <? 10 <?php 10 11 11 $File = fopen('c:\www\LockRegistration\záznam.log', 'r'); 12 fgets($File); 13 while(!feof($File)) 14 echo(substr(fgets($File), 0).'<br>'); 12 echo(str_replace("\n", '<br>', (file_get_contents('../../registrace/LockRegistration/záznam.log')))); 13 15 14 ?> 16 15 </table> -
administrace/george/gm_news.php
r5 r11 1 1 <? 2 2 include_once('db.php'); 3 DB_Init('localhost', 'root','gurubashi', 'wow'); 3 include('../../config.php'); 4 DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'wow'); 4 5 //DB_Query('SET CHARACTER SET cp1250'); 5 6 -
administrace/george/list_tele.php
r5 r11 1 1 <? 2 2 include_once('db.php'); 3 DB_Init('localhost', 'root', '', 'mangos'); 3 include('../../config.php'); 4 DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'mangos'); 4 5 DB_Query('SET CHARACTER SET cp1250'); 5 6 -
administrace/george/optimalize.php
r5 r11 1 1 <?php 2 2 include_once('db.php'); 3 include_once('../../config.php'); 3 4 4 5 function OptimalizeDb($Database, $Op) 5 6 { 7 global $DatabaseHost, $DatabaseUser, $DatabasePassword; 6 8 echo('Databáze '.$Database.'...<br><table>'); 7 DB_Init( 'localhost', 'root', 'gurubashi', $Database);9 DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, $Database); 8 10 DB_Query('SHOW TABLES'); 9 11 while($Table = DB_Row()) -
administrace/george/restarty.php
r5 r11 2 2 3 3 include_once('db.php'); 4 include_once('../../config.php'); 4 5 echo('<strong>Posledních 10 restartù MaNGOSu:</strong><br>'); 5 6 echo('<div style="font-size: small;">'); 6 DB_Init( 'localhost', 'root','gurubashi', 'wow');7 DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'wow'); 7 8 DB_Select('mangos_restart', '*', '1 ORDER BY time DESC LIMIT 10'); 8 9 while($Row = DB_Row()) -
administrace/george/rss.php
r5 r11 3 3 4 4 include_once('db.php'); 5 include_once('../../config.php'); 5 6 include_once('rss_generator.php'); 6 DB_Init( 'localhost', 'root', '', 'wow');7 DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'wow'); 7 8 DB_Query('SET CHARACTER SET latin2'); 8 9 -
administrace/listmessage.php
r5 r11 1 1 <?php 2 include 'SubFiles/TestLicence.php';3 2 4 include 'SubFiles/DatabaseConection.php'; 5 $Database2 = new Database('localhost','root','gurubashi'); // dodìlat IP 6 $Database2->SelectDatabase('wow'); 3 include 'SubFiles/TestLicence.php'; 4 include 'SubFiles/DatabaseConection.php'; 5 include('../config.php'); 6 7 $Database2 = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword); // dodìlat IP 8 $Database2->SelectDatabase('wow'); 9 7 10 ?> 11 8 12 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 9 13 <html> -
administrace/master.php
r5 r11 1 1 <?php 2 include('../config.php'); 2 3 // Test zda je registrovaný uivatel 3 4 session_start(); … … 72 73 <A href="borec/cheat.php">cheat</A> 73 74 <br>Návody 74 <A href=" /navody/">zde</A>75 <A href="../navody/">zde</A> 75 76 <br>Povolené Registrace: 76 77 <A href="borec/zaznamPovolenychRegistraci.php">zde</A> … … 90 91 <td valign="top"> 91 92 <?php 92 $Database2 = new Database( 'localhost','root','gurubashi'); // dodìlat IP93 $Database2 = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword); // dodìlat IP 93 94 $Database2->SelectDatabase('mangos'); 94 95 … … 138 139 <TD width="100%" valign="top"> 139 140 <form action="george/gm_news.php?action=add" method="post"> 140 Jste pøihlá en jako:141 Jste pøihláen jako: 141 142 <b> 142 143 <?php echo @$_SESSION['User']; ?></b> -
config.sample.php
r10 r11 10 10 $DatabaseHost = 'localhost'; 11 11 $Charset = 'windows-1250'; 12 $BaseUrl = '/'; 12 13 13 14 ?> -
css/style.css
r5 r11 6 6 height: 100%; 7 7 width: 1005; 8 background-image: url( /Background.JPG);8 background-image: url(images/background.jpg); 9 9 background-repeat: no-repeat; 10 10 border= 0; … … 107 107 font-family: Comic Sans MS; 108 108 } 109 .T AbleGuilda{109 .TableGuilda { 110 110 color: white; 111 111 font-size: small; 112 text-align: center; 112 113 } 113 114 .TdGuilda{ -
donate.php
r5 r11 1 <? 1 <?php 2 2 include('global.php'); 3 3 ShowHeader(); … … 20 20 <br> 21 21 22 <?php include('finance/index.php'); ?> 22 <?php 23 include('finance/index.php'); 24 ?> 23 25 24 26 </table> 25 27 26 <? 28 <?php 27 29 ShowFooter(); 28 30 ?> -
global.php
r8 r11 1 <? 1 <?php 2 2 3 3 include('config.php'); … … 41 41 function ShowHeader() 42 42 { 43 global $Charset ;43 global $Charset, $BaseUrl; 44 44 echo(' 45 45 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> … … 49 49 <META http-equiv="Content-Type" content="text/html; charset='.$Charset.'"> 50 50 <META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT"> 51 <link rel="SHORTCUT ICON" href=" /images/favicon.ico">51 <link rel="SHORTCUT ICON" href="images/favicon.ico"> 52 52 <TITLE>WoW server Heroes of Fantasy</TITLE> 53 <style type="text/css" media="screen">@import url( /css/style.css);</style>53 <style type="text/css" media="screen">@import url('.$BaseUrl.'css/style.css);</style> 54 54 </HEAD> 55 55 … … 73 73 } 74 74 imgsrc = new Array(); 75 imgsrc[1] = " /images/home.jpg";76 imgsrc[2] = " /images/home2.jpg";77 imgsrc[3] = " /images/donate.jpg";78 imgsrc[4] = " /images/donate2.jpg";79 imgsrc[5] = " /images/download.jpg";80 imgsrc[6] = " /images/download2.jpg";81 imgsrc[7] = " /images/forum.jpg";82 imgsrc[8] = " /images/forum2.jpg";83 imgsrc[9] = " /images/guilds.jpg";84 imgsrc[10] = " /images/guilds2.jpg";85 imgsrc[11] = " /images/honor.jpg";86 imgsrc[12] = " /images/honor2.jpg";87 imgsrc[13] = " /images/how.jpg";88 imgsrc[14] = " /images/how2.jpg";89 imgsrc[15] = " /images/link.jpg";90 imgsrc[16] = " /images/link2.jpg";91 imgsrc[17] = " /images/mapa.jpg";92 imgsrc[18] = " /images/mapa2.jpg";93 imgsrc[19] = " /images/online_player.jpg";94 imgsrc[20] = " /images/online_player2.jpg";95 imgsrc[21] = " /images/povolani.jpg";96 imgsrc[22] = " /images/povolani2.jpg";97 imgsrc[23] = " /images/profese.jpg";98 imgsrc[24] = " /images/profese2.jpg";99 imgsrc[25] = " /images/rasy.jpg";100 imgsrc[26] = " /images/rasy2.jpg";101 imgsrc[27] = " /images/registrace.jpg";102 imgsrc[28] = " /images/registrace2.jpg";103 imgsrc[29] = " /images/server.jpg";104 imgsrc[30] = " /images/server2.jpg";75 imgsrc[1] = "'.$BaseUrl.'images/home.jpg"; 76 imgsrc[2] = "'.$BaseUrl.'images/home2.jpg"; 77 imgsrc[3] = "'.$BaseUrl.'images/donate.jpg"; 78 imgsrc[4] = "'.$BaseUrl.'images/donate2.jpg"; 79 imgsrc[5] = "'.$BaseUrl.'images/download.jpg"; 80 imgsrc[6] = "'.$BaseUrl.'images/download2.jpg"; 81 imgsrc[7] = "'.$BaseUrl.'images/forum.jpg"; 82 imgsrc[8] = "'.$BaseUrl.'images/forum2.jpg"; 83 imgsrc[9] = "'.$BaseUrl.'images/guilds.jpg"; 84 imgsrc[10] = "'.$BaseUrl.'images/guilds2.jpg"; 85 imgsrc[11] = "'.$BaseUrl.'images/honor.jpg"; 86 imgsrc[12] = "'.$BaseUrl.'images/honor2.jpg"; 87 imgsrc[13] = "'.$BaseUrl.'images/how.jpg"; 88 imgsrc[14] = "'.$BaseUrl.'images/how2.jpg"; 89 imgsrc[15] = "'.$BaseUrl.'images/link.jpg"; 90 imgsrc[16] = "'.$BaseUrl.'images/link2.jpg"; 91 imgsrc[17] = "'.$BaseUrl.'images/mapa.jpg"; 92 imgsrc[18] = "'.$BaseUrl.'images/mapa2.jpg"; 93 imgsrc[19] = "'.$BaseUrl.'images/online_player.jpg"; 94 imgsrc[20] = "'.$BaseUrl.'images/online_player2.jpg"; 95 imgsrc[21] = "'.$BaseUrl.'images/povolani.jpg"; 96 imgsrc[22] = "'.$BaseUrl.'images/povolani2.jpg"; 97 imgsrc[23] = "'.$BaseUrl.'images/profese.jpg"; 98 imgsrc[24] = "'.$BaseUrl.'images/profese2.jpg"; 99 imgsrc[25] = "'.$BaseUrl.'images/rasy.jpg"; 100 imgsrc[26] = "'.$BaseUrl.'images/rasy2.jpg"; 101 imgsrc[27] = "'.$BaseUrl.'images/registrace.jpg"; 102 imgsrc[28] = "'.$BaseUrl.'images/registrace2.jpg"; 103 imgsrc[29] = "'.$BaseUrl.'images/server.jpg"; 104 imgsrc[30] = "'.$BaseUrl.'images/server2.jpg"; 105 105 if (getAppVersion()) { 106 106 img = new Array(); … … 130 130 function ShowFooter() 131 131 { 132 global $BaseUrl; 132 133 echo(' 133 134 </td> … … 143 144 echo(' 144 145 <br> 145 <a href="/index.php" onMouseOver="swtch("2","home")" onMouseOut="swtch("1","home")"><IMG SRC="/images/home.jpg" name="home" alt="Home" border="0"></A><a href="/server.php" onMouseOver="swtch("30","Server")" onMouseOut="swtch("29","Server")"><IMG SRC="/images/server.jpg" name="Server" alt="Server" border="0"></A><a href="/donate.php" onMouseOver="swtch("4","donate")" onMouseOut="swtch("3","donate")"><IMG SRC="/images/donate.jpg" alt="donate" name="donate" border="0"></A><a href="/download_soubory/" onMouseOver="swtch("6","download")" onMouseOut="swtch("5","download")"><IMG SRC="/images/download.jpg" alt="download" name="download" border="0"></A><a href="/jak_zacit.php" onMouseOver="swtch("14","how")" onMouseOut="swtch("13","how")"><IMG SRC="/images/how.jpg" alt="how" name="how" border="0"></A><a href="/link.php" onMouseOver="swtch("16","link")" onMouseOut="swtch("15","link")"><IMG SRC="/images/link.jpg" alt="link" name="link" border="0"></A><a href="/mapa.php" onMouseOver="swtch("18","mapa")" onMouseOut="swtch("17","mapa")"><IMG SRC="/images/mapa.jpg" alt="mapa" name="mapa" border="0"></A><a href="/guildy.php" onMouseOver="swtch("10","guildy")" onMouseOut="swtch("9","guildy")"><IMG SRC="/images/guilds.jpg" alt="guildy" name="guildy" border="0"></A><a href="/forum/" onMouseOver="swtch("8","Forum")" onMouseOut="swtch("7","Forum")"><IMG SRC="/images/forum.jpg" alt="Forum" name="Forum" border="0"></A><a href="/registrace/" onMouseOver="swtch("28","registrace")" onMouseOut="swtch("27","registrace")"><IMG SRC="/images/registrace.jpg" alt="registrace" name="registrace" border="0"></A><a href="/online_player.php" onMouseOver="swtch("20","online_player")" onMouseOut="swtch("19","online_player")"><IMG SRC="/images/online_player.jpg" alt="online player" name="online_player" border="0"></A><a href="/honor.php" onMouseOver="swtch("12","honor")" onMouseOut="swtch("11","honor")"><IMG SRC="/images/honor.jpg" alt="honor" name="honor" border="0"></A><a href="/Death%20Dealers%20Hratelne%20Rasy.php" onMouseOver="swtch("26","Rasy")" onMouseOut="swtch("25","Rasy")"><IMG SRC="/images/rasy.jpg" alt="Rasy" name="Rasy" border="0"></A><a href="/Death%20Dealers%20Povolani.php" onMouseOver="swtch("22","Povolani")" onMouseOut="swtch("21","Povolani")"><IMG SRC="/images/povolani.jpg" alt="Povolani" name="Povolani" border="0"></A><a href="/Death%20Dealers%20Profese.php" onMouseOver="swtch("24","profese")" onMouseOut="swtch("23","profese")"><IMG SRC="/images/profese.jpg" alt="profese" name="profese" border="0"></A> 146 <a href="'.$BaseUrl.'index.php" onMouseOver="swtch("2","home")" onMouseOut="swtch("1","home")"><IMG SRC="'.$BaseUrl.'images/home.jpg" name="home" alt="Home" border="0"></A> 147 <a href="'.$BaseUrl.'server.php" onMouseOver="swtch("30","Server")" onMouseOut="swtch("29","Server")"><IMG SRC="'.$BaseUrl.'images/server.jpg" name="Server" alt="Server" border="0"></A> 148 <a href="'.$BaseUrl.'donate.php" onMouseOver="swtch("4","donate")" onMouseOut="swtch("3","donate")"><IMG SRC="'.$BaseUrl.'images/donate.jpg" alt="donate" name="donate" border="0"></A> 149 <a href="'.$BaseUrl.'download_soubory/" onMouseOver="swtch("6","download")" onMouseOut="swtch("5","download")"><IMG SRC="'.$BaseUrl.'images/download.jpg" alt="download" name="download" border="0"></A> 150 <a href="'.$BaseUrl.'jak_zacit.php" onMouseOver="swtch("14","how")" onMouseOut="swtch("13","how")"><IMG SRC="'.$BaseUrl.'images/how.jpg" alt="how" name="how" border="0"></A> 151 <a href="'.$BaseUrl.'link.php" onMouseOver="swtch("16","link")" onMouseOut="swtch("15","link")"><IMG SRC="'.$BaseUrl.'images/link.jpg" alt="link" name="link" border="0"></A> 152 <a href="'.$BaseUrl.'mapa.php" onMouseOver="swtch("18","mapa")" onMouseOut="swtch("17","mapa")"><IMG SRC="'.$BaseUrl.'images/mapa.jpg" alt="mapa" name="mapa" border="0"></A> 153 <a href="'.$BaseUrl.'guildy.php" onMouseOver="swtch("10","guildy")" onMouseOut="swtch("9","guildy")"><IMG SRC="'.$BaseUrl.'images/guilds.jpg" alt="guildy" name="guildy" border="0"></A> 154 <a href="'.$BaseUrl.'forum/" onMouseOver="swtch("8","Forum")" onMouseOut="swtch("7","Forum")"><IMG SRC="'.$BaseUrl.'images/forum.jpg" alt="Forum" name="Forum" border="0"></A> 155 <a href="'.$BaseUrl.'registrace/" onMouseOver="swtch("28","registrace")" onMouseOut="swtch("27","registrace")"><IMG SRC="'.$BaseUrl.'images/registrace.jpg" alt="registrace" name="registrace" border="0"></A> 156 <a href="'.$BaseUrl.'online_player.php" onMouseOver="swtch("20","online_player")" onMouseOut="swtch("19","online_player")"><IMG SRC="'.$BaseUrl.'images/online_player.jpg" alt="online player" name="online_player" border="0"></A> 157 <a href="'.$BaseUrl.'honor.php" onMouseOver="swtch("12","honor")" onMouseOut="swtch("11","honor")"><IMG SRC="'.$BaseUrl.'images/honor.jpg" alt="honor" name="honor" border="0"></A> 158 <a href="'.$BaseUrl.'Death%20Dealers%20Hratelne%20Rasy.php" onMouseOver="swtch("26","Rasy")" onMouseOut="swtch("25","Rasy")"><IMG SRC="'.$BaseUrl.'images/rasy.jpg" alt="Rasy" name="Rasy" border="0"></A> 159 <a href="'.$BaseUrl.'Death%20Dealers%20Povolani.php" onMouseOver="swtch("22","Povolani")" onMouseOut="swtch("21","Povolani")"><IMG SRC="'.$BaseUrl.'images/povolani.jpg" alt="Povolani" name="Povolani" border="0"></A> 160 <a href="'.$BaseUrl.'Death%20Dealers%20Profese.php" onMouseOver="swtch("24","profese")" onMouseOut="swtch("23","profese")"><IMG SRC="'.$BaseUrl.'images/profese.jpg" alt="profese" name="profese" border="0"></A> 146 161 147 162 … … 173 188 <DIV class="DivPaticka"> 174 189 <I class="Paticka"> 175 <A href=" /administrace/" class="Paticka">#</A>176 | Web designer: maron | e-mail: maron2@centrum.cz| Poèet pøístupù: <A HREF="http://counter.cnw.cz/" TARGET=_parent>190 <A href="administrace/" class="Paticka">#</A> 191 | Správce server: Chronos | Poèet pøístupù: <A HREF="http://counter.cnw.cz/" TARGET=_parent> 177 192 <IMG SRC="http://counter.cnw.cz/monika.cgi?wowzdechov&5&000000&FFFFFF&on" BORDER=0 ALT="CNW:Counter"></A><SCRIPT type="JavaScript"> 178 193 <!-- -
gm.php
r5 r11 18 18 <?php 19 19 include 'administrace/SubFiles/DatabaseConection.php'; 20 $Database = new Database( 'localhost','root','gurubashi');20 $Database = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword); 21 21 $Database->SelectDatabase('wow'); 22 22 -
guildy.php
r8 r11 19 19 if(!array_key_exists('guild', $_GET)) 20 20 { 21 echo('< h3>Seznam guild:</h3>');22 echo('< div align="center"><table class="TableGuilda" style="align: center;" border="1" cellpadding="3" cellspacing="0" ><tr><th>Název</th><th>Poèet èlenù</th><th>Souèet levelù</th><th>Souèet bodù cti</th><th>Webové stránky</th></tr>');21 echo('<div align="center"><strong>Seznam guild:</strong>'); 22 echo('<table class="TableGuilda" style="align: center;" border="1" cellpadding="3" cellspacing="0" ><tr><th>Název</th><th>Poèet èlenù</th><th>Souèet levelù</th><th>Souèet bodù cti</th><th>Webové stránky</th></tr>'); 23 23 // DB_Query(' COUNT(guild_member.guildid) as member_count FROM guild JOIN guild_member ON guild_member.guildid = guild.guildid GROUP BY guild.name ORDER BY member_count DESC'); 24 24 DB_Query('SELECT `guild`.name, guild.guildid, COUNT(`guild_member`.`guildid`) as member_count, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 35), " ", -1)) as guild_level, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 1421), " ", -1)) as guild_honor FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `character` ON `character`.`guid`= `guild_member`.`guid` GROUP BY guild.name ORDER BY guild.name'); … … 30 30 } else { 31 31 $_GET['guild'] = addslashes($_GET['guild']); 32 DB_Query('SELECT `guild`.name, guild.guildid, COUNT(`guild_member`.`guildid`) as member_count, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 35), " ", -1)) as guild_level, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 1421), " ", -1)) as guild_honor FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `character` ON `character`.`guid`= `guild_member`.`guid` WHERE guild.guildid='.$_GET['guild'].' GROUP BY guild.name');32 DB_Query('SELECT `guild`.name, guild.guildid, guild.leaderguid, COUNT(`guild_member`.`guildid`) as member_count, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 35), " ", -1)) as guild_level, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 1421), " ", -1)) as guild_honor FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `character` ON `character`.`guid`= `guild_member`.`guid` WHERE guild.guildid='.$_GET['guild'].' GROUP BY guild.name'); 33 33 if(DB_NumRows() > 0) 34 34 { … … 36 36 // if($Guild['homepage'] != '') $Guild['name'] = $Guild['name'].' <a href="'.$Guild['homepage'].'">WWW</a>'; 37 37 //if($Guild['info'] != '') $Guild['info'] = ''.$Guild['info'].'</i>'; 38 echo('<h3>Seznam èlenù guildy '.$Guild['name'].':</h3>'); 39 echo('<div align="center"><table class="TableGuilda" border="1" cellpadding="1" cellspacing="0">'); 38 echo('<div align="center"><strong>Seznam èlenù guildy '.$Guild['name'].'</strong><br>'); 39 DB_Select('`character`', 'name', $Guild['leaderguid'].'=guid'); 40 $GuildMaster = DB_Row(); 41 echo('Vedoucí guildy: '.$GuildMaster['name'].'<br>'); 42 echo('<table class="TableGuilda" border="1" cellpadding="1" cellspacing="0">'); 40 43 echo('<tr><th>Jméno</th><th>Level</th><th>Hodnost</th><th>Body cti</th></tr>'); 41 44 //echo('<tr><td colspan="2" Class="TdGuilda">Informace: '.$Guild['public_info'].'</td></tr>'); -
index.php
r5 r11 37 37 <tr> 38 38 <td>MaNGOS TBC</td> 39 <td><? if(CheckPortStatus($WoWServer, 8085)) echo('<span style="color: #33ff33;">ONLINE</span>'); else echo('<span style="color: red;">OFFLINE</span>'); ?></td>39 <td><?php if(CheckPortStatus($WoWServer, 8085)) echo('<span style="color: #33ff33;">ONLINE</span>'); else echo('<span style="color: red;">OFFLINE</span>'); ?></td> 40 40 <td><a href="<?php echo('http://'.$WoWServer); ?>/online_player.php"><? echo(file_get_contents('http://'.$WoWServer.'/mangos/players.php')); ?></a></td> 41 41 <td><a href="jak_zacit.php">zde</a></td> 42 <td><? include('registrace/LockRegistration/script.php'); 43 AdresaRegistrace(); 42 <td><?php echo('<a href="'.$BaseUrl.'registrace/">zde</a>'); 43 //include('registrace/LockRegistration/script.php'); 44 //AdresaRegistrace(); 44 45 ?></td> 45 <td><? StafRegistraci(); 46 <td><?php echo('POVOLENÉ'); 47 //StafRegistraci(); 46 48 ?></td> 47 <td><? echo(round((time()-mktime (0,0,0,4,21,2007))/3600/24)); ?></td>48 <td><? echo(file_get_contents('http://'.$WoWServer.'/mangos/accounts.php')); ?></td>49 <td><? echo(file_get_contents('http://'.$WoWServer.'/mangos/characters.php')); ?></td>49 <td><?php echo(round((time()-mktime (0,0,0,4,21,2007))/3600/24)); ?></td> 50 <td><?php echo(file_get_contents('http://'.$WoWServer.'/mangos/accounts.php')); ?></td> 51 <td><?php echo(file_get_contents('http://'.$WoWServer.'/mangos/characters.php')); ?></td> 50 52 </tr> 51 53 </table> … … 60 62 <div><?php 61 63 include 'administrace/SubFiles/DatabaseConection.php'; 62 $Database = new Database( 'localhost','root','gurubashi');64 $Database = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword); 63 65 $Database->SelectDatabase('wow'); 64 66 -
registrace/LockRegistration/script.php
r5 r11 1 <? 1 <?php 2 require_once('../../config.php'); 3 4 $RegFile = 'NumberRegistration.txt'; 5 2 6 function StafRegistraci() 3 7 { 4 $NumberRegistration = 0; 5 $File = fopen('c:\www\registrace\LockRegistration\NumberRegistration','r'); 6 $NumberRegistration = fread($File,5); 7 fclose($File); 8 global $RegFile, $BaseUrl; 9 $NumberRegistration = 0; 10 $File = fopen($RegFile, 'r'); 11 $NumberRegistration = fread($File, 5); 12 fclose($File); 8 13 9 if ($NumberRegistration == 'close')10 echo('<a href="/registrace/">Vyèerpáno</a>');11 else12 echo('Zbývá registrací: '.$NumberRegistration);14 if ($NumberRegistration == 'close') 15 echo('<a href="'.$BaseUrl.'registrace/">Vyèerpáno</a>'); 16 else 17 echo('Zbývá registrací: '.$NumberRegistration); 13 18 } 14 19 15 20 function AdresaRegistrace() 16 21 { 17 $NumberRegistration = 0; 18 $File = fopen('c:\www\registrace\LockRegistration\NumberRegistration','r'); 19 $NumberRegistration = fread($File,5); 20 fclose($File); 22 global $RegFile, $BaseUrl; 23 $NumberRegistration = 0; 24 $File = fopen($RegFile, 'r'); 25 $NumberRegistration = fread($File,5); 26 fclose($File); 21 27 22 if ($NumberRegistration != 'close') 23 echo('<a href="/registrace/">zde</a>'); 28 if ($NumberRegistration != 'close') echo('<a href="'.$BaseUrl.'registrace/">zde</a>'); 24 29 } 25 30 26 31 function AdresaRegistraceRegistrace() 27 32 { 28 $NumberRegistration = 0; 29 $File = fopen('c:\www\registrace\LockRegistration\NumberRegistration','r'); 30 $NumberRegistration = fread($File,5); 31 fclose($File); 33 global $RegFile, $BaseUrl; 34 $NumberRegistration = 0; 35 $File = fopen($RegFile, 'r'); 36 $NumberRegistration = fread($File,5); 37 fclose($File); 32 38 33 if ($NumberRegistration != 'close')39 if ($NumberRegistration != 'close') 34 40 // include('c:\www\registrace\LockRegistration\FormularRegistrace.php'); 35 echo('Registrovat se mùete: <a href="http://wow.zdechov.net/minimanager/register.php">zde</a>');41 echo('Registrovat se mùete: <a href="'.$BaseUrl.'minimanager/register.php">zde</a>'); 36 42 } 37 43 38 44 function PovoleneRegistrace() 39 45 { 40 $NumberRegistration = 0; 41 $File = fopen('c:\www\registrace\LockRegistration\UnlockRegistration','r'); 42 $NumberRegistration = fread($File,5); 43 fclose($File); 44 echo($NumberRegistration); 46 global $RegFile; 47 $NumberRegistration = 0; 48 $File = fopen($RegFile, 'r'); 49 $NumberRegistration = fread($File, 5); 50 fclose($File); 51 echo($NumberRegistration); 45 52 } 46 53 ?> -
registrace/index.php
r5 r11 1 <? 1 <?php 2 2 include('../global.php'); 3 3 ShowHeader(); … … 13 13 <br><br> 14 14 15 Poèet povolených registrací na dnení den: <? 16 include('LockRegistration/script.php'); 17 PovoleneRegistrace(); 15 Poèet povolených registrací na dnení den: 16 <?php 17 //include('LockRegistration/script.php'); 18 //PovolenychRegistraci(); 19 echo('Neomezeno'); 18 20 ?> 19 21 <br /> 20 Stav Registrací: <? 21 StafRegistraci(); 22 Stav Registrací: 23 <?php 24 //StafRegistraci(); 22 25 echo('</p>'); 23 AdresaRegistraceRegistrace(); 26 echo('Registrovat se mùete: <a href="'.$BaseUrl.'minimanager/register.php">zde</a>'); 27 //AdresaRegistraceRegistrace(); 24 28 ?> 25 29 <P> … … 33 37 <br> 34 38 <br />Statitiku najdete <a href="http://game-server.zdechov.net/statistic/?Measure=8">zde</a> 35 <br>Mùete taky pøispìt na server aby se mohl zlepit. Stav úètu mùete sledovat v sekci <A href=" /donate.php" target="_parent">Donate</A>39 <br>Mùete taky pøispìt na server aby se mohl zlepit. Stav úètu mùete sledovat v sekci <A href="<?php echo($BaseUrl); ?>donate.php" target="_parent">Donate</A> 36 40 <br> 37 41 </P>
Note:
See TracChangeset
for help on using the changeset viewer.