- Timestamp:
- Aug 7, 2009, 10:03:50 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/config.sample.php
r597 r609 19 19 'UDBRevision' => '204', 20 20 'ScriptDev2Revision' => '137', 21 'ClientVersion' => '3. 0.9',22 ' MaxOnlinePlayers' => 100,21 'ClientVersion' => '3.1.3', 22 'DatabaseRealmd' => 'realmd', 23 23 'RequiredOnlinePlayers' => 70, 24 'DatabaseMangos' => 'mangos',25 'DatabaseCharacters' => 'characters',26 'DatabaseRealmd' => 'realmd',27 'DatabaseScriptDev2' => 'scriptdev2',28 24 'GMCommandsLog' => 'gm_commands.log', 29 25 'CharacterDataOffset' => array … … 34 30 'HonorPoints' => 1648, 35 31 'ArenaPoints' => 1649, 32 ), 33 'RealmList' => array( 34 1 => array( 35 'Name' => 'Realm 1' 36 'DatabaseCharacters' => 'realm1_characters', 37 'DatabaseMangos' => 'realm1_mangos', 38 'DatabaseScriptDev2' => 'realm1_scriptdev2', 39 'MaxOnlinePlayers' => 100, 40 'XPRate' => 1, 41 'Type' => 'Normalní', 42 'Description' => 'Hlavní realm', 43 ), 36 44 ), 37 45 ), … … 50 58 'ShowSQLError' => false, 51 59 'ShowSQLQuery' => false, 60 'ShowPHPError' => false, 52 61 ), 53 62 'CheckRegistration' => array -
trunk/inc/html.php
r595 r609 195 195 public function ShowNews($kategorie) 196 196 { 197 198 197 global $Config; 198 199 199 echo('<table class="NewsCategoryTable">'. 200 200 '<tr>'. … … 214 214 $where = 'WHERE `category` = "'.$kategorie.'"'; 215 215 } 216 216 217 217 $this->db->select_db($Config['Database']['Database']); 218 218 $limit = 5; … … 297 297 '<tr>'. 298 298 '<td colspan="2">'. 299 '<strong>Server : </strong>'.$server->ServerImg($server->ServerOnline($Config['Web']['WoWServerAddr'], 8085)).'<b> (<a href="?page=online">'.$server->MangosOnline().' hráčů</a>) | Patch '.$Config['Mangos']['ClientVersion'].' | <a href="'.$Config['Web']['BaseURL'].'/pages/realmlist.wtf">Realmlist</a> | Více info <a href="?page=server">zde</a></b>'.299 '<strong>Server : </strong>'.$server->ServerImg($server->ServerOnline($Config['Web']['WoWServerAddr'], 3724)).'<b> (<a href="?page=online">'.$server->ServerMangosOnline().' hráčů</a>) | Patch '.$Config['Mangos']['ClientVersion'].' | <a href="'.$Config['Web']['BaseURL'].'/pages/realmlist.wtf">Realmlist</a> | Více info <a href="?page=server">zde</a></b>'. 300 300 '</td></tr></table><br />'); 301 301 } -
trunk/inc/player.php
r583 r609 7 7 private $db; 8 8 9 function __construct 9 function __construct($db) 10 10 { 11 11 $this->db = &$db; … … 15 15 { 16 16 if($err == 0) echo('<img src="imgs/inc/on.gif"> <font color="#234303" size="4">'.$text.'</font><br />'); 17 else echo('<img src="imgs/inc/off.gif"> <font color="#990000" size="4\">'.$text.'</font><br />');17 else echo('<img src="imgs/inc/off.gif"> <font color="#990000" size="4\">'.$text.'</font><br />'); 18 18 } 19 19 … … 49 49 if($sql->num_rows == 1) 50 50 { 51 $row = $sql->fetch_a rray();51 $row = $sql->fetch_assoc(); 52 52 $_SESSION['UserId'] = $row['id']; 53 53 $_SESSION['UserName'] = $username; … … 73 73 if(!array_key_exists('Time', $_SESSION)) $_SESSION['Time'] = time(); 74 74 if(!array_key_exists('UserId', $_SESSION)) $_SESSION['UserId'] = 0; 75 if($_SESSION['Time'] < (time() - 60 * $this->SessionTimeout)) 76 { 77 $this->Logout(); 78 } 75 if($_SESSION['Time'] < (time() - 60 * $this->SessionTimeout)) $this->Logout(); 79 76 $_SESSION['Time'] = time(); 80 77 return($_SESSION['UserId'] != 0); … … 83 80 public function LoginForm() 84 81 { 85 echo('<form method="post" action="?page=acc"> 86 <table>87 <tr>88 82 echo('<form method="post" action="?page=acc">'. 83 '<table>'. 84 '<tr>'. 85 '<td><b>Jméno : </b></td><td><input type="text" name="user" class="textinput"></td> 89 86 </tr> 90 87 <tr> … … 97 94 </form> 98 95 <div align="left"> 99 <a href="?page=register">Registrace</a><br /> <a href="?page=lostpass">Obnova hesla</a>100 </div>');96 <a href="?page=register">Registrace</a><br />'. //<a href="?page=lostpass">Obnova hesla</a> 97 '</div>'); 101 98 } 102 99 … … 105 102 global $Config; 106 103 107 $this->db->select_db($Config['Mangos']['DatabaseCharacters']); 108 $DbResult = $this->db->query( 109 'SELECT CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, " ", '.($Config['Mangos']['CharacterDataOffset']['Level'] + 1).'), " ", -1)'. 110 ' AS UNSIGNED) AS `level` FROM `characters` WHERE `guid` = "'.$guid.'" LIMIT 1;'); 104 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 105 $DbResult = $this->db->query('SELECT CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, " ", '.($Config['Mangos']['CharacterDataOffset']['Level'] + 1).'), " ", -1) AS UNSIGNED) AS `level` FROM `characters` WHERE `guid` = "'.$guid.'" LIMIT 1;'); 111 106 $row = $DbResult->fetch_assoc(); 112 107 return($row['level']); … … 146 141 if(!$this->IsOnline($guid)) 147 142 { 148 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);143 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 149 144 $row = $this->db->query('SELECT `data` FROM `characters` WHERE `guid` = "'.$guid.'" LIMIT 1')->fetch_assoc(); 150 145 $data = explode(' ', $row['data']); … … 161 156 global $Config; 162 157 163 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);158 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 164 159 if($this->CharInAcc($guid, 0)) 165 160 { … … 189 184 global $Config; 190 185 191 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);186 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 192 187 // .go xyz -90.54 41.35 -31.71 193 188 // .go xyz -91.01 100.46 -31.71 … … 230 225 global $Config; 231 226 232 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);227 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 233 228 $row = $this->db->query('SELECT `online` FROM `characters` WHERE `guid` = "'.$guid.'" LIMIT 1;')->fetch_assoc(); 234 229 if($row['online'] == 1) return(true); 235 else return(false);230 else return(false); 236 231 } 237 232 … … 246 241 $acc = $_SESSION['UserId']; 247 242 } 248 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);243 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 249 244 if($this->db->query('SELECT `guid` FROM `characters` WHERE `characters`.`guid`="'.$char.'" AND `account`="'.$acc.'" LIMIT 1;')->num_rows == 1) 250 245 { … … 265 260 global $Config; 266 261 267 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);262 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 268 263 $row = $this->db->query('SELECT `guid` FROM `characters` WHERE `name` LIKE "'.$name.'" LIMIT 1;')->fetch_assoc(); 269 264 if($row['guid'] != '') … … 280 275 global $Config; 281 276 282 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);277 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 283 278 $row = $this->db->query('SELECT `name` FROM `characters` WHERE `guid` = "'.$guid.'" LIMIT 1;')->fetch_assoc(); 284 279 if($row['name'] != '') … … 359 354 <th>Nahráno</th> 360 355 </tr>'); 361 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);356 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 362 357 echo($this->db->error); 363 358 $sql = $this->db->query('SELECT `guid`,`name`,`race`,`totaltime`,`class`, mid(lpad( hex( CAST(substring_index(substring_index(data, " ", '.($Config['Mangos']['CharacterDataOffset']['Gender'] + 1).'), " ",-1) AS unsigned) ), 8, 0), 4, 1) AS gender FROM `characters` WHERE `account`='.$accid.' ORDER BY `totaltime` DESC LIMIT 0, 10'); -
trunk/inc/server.php
r596 r609 1 1 <?php 2 3 function NullErrorHandler() 4 { 5 } 2 6 3 7 class Server … … 45 49 } 46 50 47 public function MangosOnline( )51 public function MangosOnline($RealmId) 48 52 { 49 53 global $Config; 50 54 51 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);55 $this->db->select_db($Config['Mangos']['RealmList'][$RealmId]['DatabaseCharacters']); 52 56 $DbResult = $this->db->query('SELECT COUNT(*) FROM `characters` WHERE `online` = 1'); 53 57 $DbRow = $DbResult->fetch_row(); … … 55 59 } 56 60 57 public function ServerOnline($ip, $port) 58 { 59 if($fp1 = @fsockopen($ip, $port, $ERROR_NO, $ERROR_STR, (float)0.5)) 61 public function ServerMangosOnline() 62 { 63 global $Config; 64 65 $TotalCount = 0; 66 foreach($Config['Mangos']['RealmList'] as $Index => $Realm) 60 67 { 61 fclose($fp1); 62 return(true); 63 } else 68 $TotalCount += $this->MangosOnline($Index); 69 } 70 return($TotalCount); 71 } 72 73 public function ServerOnline($Address, $Port, $Timeout = 0.5) 74 { 75 set_error_handler('NullErrorHandler'); 76 if($Socket = @fsockopen($Address, $Port, $ERROR_NO, $ERROR_STR, (float)$Timeout)) 64 77 { 65 return(false); 66 } 67 } 78 fclose($Socket); 79 $Result = true; 80 } else $Result = false; 81 restore_error_handler(); 82 return($Result); } 68 83 69 84 public function ServerImg($status) … … 75 90 public function ServerUptime() 76 91 { 77 92 global $Config; 78 93 79 94 $this->db->select_db($Config['Mangos']['DatabaseRealmd']); … … 84 99 } 85 100 86 public function CharacterCount( )87 { 88 global $Config; 89 90 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);101 public function CharacterCount($RealmId) 102 { 103 global $Config; 104 105 $this->db->select_db($Config['Mangos']['RealmList'][$RealmId]['DatabaseCharacters']); 91 106 $row = $this->db->query('SELECT COUNT(*) FROM characters')->fetch_row(); 92 107 return($row[0]); 93 108 } 94 109 110 public function ServerCharacterCount() 111 { 112 global $Config; 113 114 $TotalCount = 0; 115 foreach($Config['Mangos']['RealmList'] as $Index => $Realm) 116 { 117 $TotalCount += $this->CharacterCount($Index); 118 } 119 return($TotalCount); 120 } 121 95 122 public function AccountCount() 96 123 { 97 124 global $Config; 98 125 99 126 $this->db->select_db($Config['Mangos']['DatabaseRealmd']); … … 104 131 public function GuidToCharName($guid) 105 132 { 106 107 108 $this->db->select_db($Config['Mangos'][' DatabaseCharacters']);133 global $Config; 134 135 $this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 109 136 $row = $this->db->query('SELECT `name` FROM `characters` WHERE `guid` = "'.$guid.'" LIMIT 1')->fetch_array(); 110 137 return($row['name']); … … 198 225 $map_id = Array 199 226 ( 200 227 0 => array(0,"Azeroths"), 201 228 1 => array(1,"Kalimdor"), 202 229 13 => array(13,"Test Zone"), … … 269 296 ); 270 297 if(isset($map_id[$id])) return($map_id[$id][1]); 271 298 else return("Neznámá"); 272 299 } 273 300 … … 276 303 $zone_id = Array 277 304 ( 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 305 1497 => Array("Undercity",1497), 306 1537 => Array("Ironforge",1537), 307 1519 => Array("Stormwind city",1519), 308 3 => Array("Badlands",3), 309 11 => Array("Wetlands",11), 310 33 => Array("Stranglethorn Vale",33), 311 44 => Array("Redridge Mountains",44), 312 38 => Array("Loch Modan",38), 313 10 => Array("Duskwood",10), 314 41 => Array("Deadwind Pass",41), 315 12 => Array("Elwynn Forest",12), 316 46 => Array("Burning Steppes",46), 317 51 => Array("Searing Gorge",51), 318 1 => Array("Dun Morogh",1), 319 47 => Array("The Hinterlands",47), 320 40 => Array("Westfall",40), 321 267 => Array("Hillsbrad Foothills",267), 322 139 => Array("Eastern Plaguelands",139), 323 28 => Array("Western Plaguelands",28), 324 130 => Array("Silverpine Forest",130), 325 85 => Array("Tirisfal Glades",85), 326 4 => Array("Blasted Lands",4), 327 8 => Array("Swamp of Sorrows",8), 328 45 => Array("Arathi Highlands",45), 329 36 => Array("Alterac Mountains",36), 330 1657 => Array("Darnassus",1657), 331 1638 => Array("Thunder_bluff",1638), 332 1637 => Array("Orgrimmar",1637), 333 493 => Array("Moonglade",493), 334 1377 => Array("Silithus",1377), 335 618 => Array("Winterspring",618), 336 490 => Array("Un Goro Crater",490), 337 361 => Array("Felwood",361), 338 16 => Array("Azshara",16), 339 440 => Array("Tanaris",440), 340 15 => Array("Dustwallow Marsh",15), 341 215 => Array("Mulgore",215), 342 357 => Array("Feralas",357), 343 405 => Array("Desolace",405), 344 400 => Array("Thousand Needles",400), 345 14 => Array("Durotar",14), 346 331 => Array("Ashenvale",331), 347 148 => Array("Darkshore",148), 348 141 => Array("Teldrassil",141), 349 406 => Array("Stonetalon Mountains",406), 350 17 => Array("She Barrens",17), 351 3703 => Array("Shattrath city",3703), 352 3487 => Array("Silvermoon city",3487), 353 3523 => Array("Netherstorm",3523), 354 3519 => Array("Terokkar Forest",3519), 355 3518 => Array("Nagrand",3518), 356 3525 => Array("Bloodmyst Isle",3525), 357 3522 => Array("Blades Edge Mountains",3522), 358 3520 => Array("Shadowmoon Valley",3520), 359 3557 => Array("The Exodar",3557), 360 3521 => Array("Zangarmarsh",3521), 361 3483 => Array("Hellfire Peninsula",3483), 362 3524 => Array("Azuremyst Isle",3524), 363 3433 => Array("Ghostlands",3433), 364 3430 => Array("Eversong Woods",3430) 338 365 ); 339 366 if(isset($zone_id[$id])) return($zone_id[$id][0]); -
trunk/index.php
r599 r609 5 5 foreach($_GET as $Index => $Item) $_GET[$Index] = addslashes($Item); 6 6 7 if(array_key_exists('RealmIndex', $_POST)) 8 { 9 setcookie('RealmIndex', $_POST['RealmIndex']); 10 $_COOKIE['RealmIndex'] = $_POST['RealmIndex']; 11 } 12 if(!array_key_exists('RealmIndex', $_COOKIE)) $_COOKIE['RealmIndex'] = 1; 13 else 14 { 15 if(!array_key_exists($_COOKIE['RealmIndex'], $Config['Mangos']['RealmList'])) 16 $_COOKIE['RealmIndex'] = 1; 17 } 18 7 19 session_start(); 8 20 include_once('inc/config.php'); 21 include_once('inc/error.php'); 9 22 include_once('inc/db.php'); 10 23 include_once('inc/html.php'); … … 25 38 '<div id="menu">'); 26 39 27 $ MenuItems = array(40 $ServerMenuItems = array( 28 41 array('link' => '?page=main', 'Text' => 'Úvod'), 29 42 array('link' => '?page=begin', 'Text' => 'Jak začít'), … … 37 50 array('link' => '?page=download', 'Text' => 'Stahování'), 38 51 array('link' => '?page=links', 'Text' => 'Odkazy'), 52 array('link' => '?page=banlist', 'Text' => 'Bany'), 53 array('link' => '?page=dotation', 'Text' => 'Dotace'), 54 array('link' => '?page=teamspeak', 'Text' => 'Team speak'), 55 array('link' => '?page=client', 'Text' => 'HoF Client'), 56 array('link' => '?page=search', 'Text' => 'Vyhledávání'), 57 array('link' => '?page=realmlist', 'Text' => 'Světy'), 58 ); 59 60 $RealmMenuItems = array( 39 61 array('link' => '?page=online', 'Text' => 'Online hráči'), 40 62 array('link' => '#', 'Text' => 'Mapa hráčů', 'OnClick' => "popup('../minimanager/pomm/pomm.php?realmid=1', 1000, 800); return false;"), 41 63 array('link' => '?page=tophraci', 'Text' => 'Nej hráči'), 42 array('link' => '?page=banlist', 'Text' => 'Bany'),43 64 array('link' => '?page=guildy', 'Text' => 'Spolky'), 44 65 array('link' => '?page=gh', 'Text' => 'Domky spolků'), 45 66 array('link' => '?page=arena', 'Text' => 'Arény'), 46 67 array('link' => '?page=events', 'Text' => 'Události'), 47 array('link' => '?page=dotation', 'Text' => 'Dotace'),48 array('link' => '?page=teamspeak', 'Text' => 'Team speak'),49 array('link' => '?page=client', 'Text' => 'HoF Client'),50 68 array('link' => '?page=gmlog', 'Text' => 'GM log'), 51 array('link' => '?page=search', 'Text' => 'Vyhledávání'),52 69 ); 53 70 54 echo('<div id="mainmenu"><br /><br />'); 55 foreach($MenuItems as $Item) 71 echo('<br /><br />'); 72 echo('<div id="mainmenu">'); 73 foreach($ServerMenuItems as $Item) 74 { 75 if(array_key_exists('OnClick', $Item)) $OnClick = ' onclick="'.$Item['OnClick'].'"'; 76 else $OnClick = ''; 77 if(array_key_exists('Target', $Item)) $Target = ' target="'.$Item['Target'].'"'; 78 else $Target = ''; 79 80 echo('<a href="'.$Item['link'].'"'.$OnClick.$Target.'>'.$Item['Text'].'</a><br />'); 81 } 82 echo('</div>'); 83 84 if(count($Config['Mangos']['RealmList']) > 1) 85 { 86 echo('Výběr světa:'); 87 echo('<form name="realm_selection" action="" method="post">'. 88 '<select name="RealmIndex" style="width: 100%" onchange="document.realm_selection.submit()">'); 89 foreach($Config['Mangos']['RealmList'] as $Index => $Realm) 90 { 91 if($_COOKIE['RealmIndex'] == $Index) $Selected = ' selected="selected"'; 92 else $Selected = ''; 93 echo('<option value="'.$Index.'"'.$Selected.'>'.$Realm['Name'].'</option>'); 94 } 95 echo('</select>'. 96 '</form>'); 97 } 98 99 echo('<br /><br />'); 100 echo('<div id="mainmenu">'); 101 foreach($RealmMenuItems as $Item) 56 102 { 57 103 if(array_key_exists('OnClick', $Item)) $OnClick = ' onclick="'.$Item['OnClick'].'"'; -
trunk/pages/arena.php
r598 r609 18 18 } 19 19 20 $db->select_db($Config['Mangos'][' DatabaseCharacters']);20 $db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 21 21 $count = $db->query('SELECT COUNT(*) FROM arena_team')->fetch_row(); 22 22 $all_record = $count[0]; -
trunk/pages/begin.php
r550 r609 1 1 <?php 2 2 3 echo('<br /> 4 Vítejte na <b>Heroes of Fantasy</b>, neoficiálním herním serveru hry <b>World of Warcraft</b>!<br /> 3 echo('<h2 align="center">Jak začít:</h2> 4 <ol> 5 <li>Nainstalujte hru <b>World of Warcraft</b> včetně datadisku <strong>Wrath of The Lich King</strong>. Instalační program stáhnete zde: <a href="http://www.heroesoffantasy.cz:81/InstallWoW.exe">enUS</a>.</li> 6 <li>Aktualizujte hru postupně až na verzi <b>'.$Config['Mangos']['ClientVersion'].'</b> buď pomocí oficiálního Launcheru nebo pomocí ručně stažených patch souborů z <a href="http://www.wowwiki.com/Patch_mirrors">wowwiky</a>.</li> 7 <li>Upravte obsah souboru realmlist.wtf (nejčastěji umístěn ve složce C:\Program Files\World of Warcraft\Data\enUS) dle souboru <a href="pages/realmlist.wtf">realmlist.wtf</a> tak, aby obsahoval adresu tohoto serveru.</lu> 8 <li>Vytvořte si nový herní účet <a href="?page=register">zde</a>.</li> 9 <li>Přejmenujte program Launcher.exe ve složce s hrou např. na Launcher2.exe a dále spouštějte hru přímo přes program WoW.exe. Předejdete tím nechtěnému stažení novější verze hry než podporuje tento server.</li> 10 <li>Spusťte hru, vyberte si <a href="?page=realmlist">svět</a>, vytvořte si novou postavu a ponořte se do nového herního světa hry <strong>World of Warcraft</strong>.</li> 11 </ol> 5 12 <br /> 13 <strong>Další možnosti:</strong><br /> 14 <ul> 15 <li>Můžete se zaregistrovat do diskuzního fóra serveru <a href="forum/">zde</a>.</li> 16 <li>Ve hře se můžete připojit příkazem /join world do společného textového chat kanálu.</li> 17 <li>Prozkoumejte webové stránky serveru a sledujte <a href="rss.php?category=articles">nejnovější informace</a> přes RSS čtečku.</li> 18 </ul> 6 19 <br /> 7 8 <b>Jak se připojit:</b><br /> 9 1) Nainstalujte hru <b>World of Warcraft</b> s datadisky <b>The Burning Crusade</b> a <b>Wrath of the Lich King</b>. Program na stažení všech tří (verze enUS): <a href="http://game.zdechov.net:81/InstallWoW.exe">HTML</a>.<br /> 10 2) Nainstalujte zjistěte si verzi World of Warcraft s oběma datadisky (ukazuje se po spuštění v levém, dolním rohu) a stáhněte si postupně patche až do verze <b>3.0.9</b> <a href="http://www.wowwiki.com/Patch_mirrors" target="_blank">WoWWiky</a>.<br /> 11 3) První řádku souboru <a href="pages/realmlist.wtf">realmlist.wtf</a> (je umístěn ve složce s WoW/data/enUS/realmlist.wtf)přepište na <b>set realmlist wow.zdechov.net</b>, zbytek realmlistu můžete nechat jaký je.<br /> 12 4) Vytvořte si <a href="?page=register">zde</a> nový herní účet<br /> 13 5) Smažte soubor launcher.exe ve složce s hrou a <b>spouštějte hru jen přes WoW.exe.</b> Zamezíte tím samovolné auktualizaci hry (stahování vyšších patchů) a následné nemožnosti připojit se na Heroes of Fantasy, který by jel na jiném patchi.<br /> 14 6) Spusťte hru, vytvořte si postavu a ponořte se do nového herního světa Heroes of Fantasy, hry <b>World of Warcraft</b>.<br /> 15 <br /> 16 <b>Další možnosti:</b><br /> 17 - Můžete se zaregistrovat do diskuzního fóra serveru: <a href="forum/">zde</a>.<br /> 18 - Ve hře se můžete připojit příkazem /join world do společného textového chat kanálu.<br /> 19 - Prozkoumejte webové stránky serveru a sledujte nejnovější informace přes RSS čtečku.<br /> 20 <br /> 21 <b>Přejeme příjemnou zábavu!</b> 22 '); 20 <strong>Přejeme příjemnou zábavu!</strong>'); 23 21 24 22 ?> -
trunk/pages/events.php
r595 r609 43 43 44 44 $Events = array('Running' => array(), 'Planned' => array()); 45 $db->select_db($Config['Mangos'][' DatabaseMangos']);45 $db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseMangos']); 46 46 47 47 $DbResult = $db->query('SELECT *, UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE end_time > NOW() AND start_time < NOW()'); -
trunk/pages/gmlog.php
r583 r609 1 1 <?php 2 2 3 $gmlog = $Config['Mangos'][' GMCommandsLog'];3 $gmlog = $Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['GMCommandsLog']; 4 4 $pocet_radku = 50; //KOLIK RADKU Z LOGU SE BUDE ZOBRAZOVAT 5 5 -
trunk/pages/guilda.php
r595 r609 3 3 function count_days($a, $b) 4 4 { 5 6 7 8 9 5 $gd_a = getdate($a); 6 $gd_b = getdate($b); 7 $a_new = mktime(12, 0, 0, $gd_a['mon'], $gd_a['mday'], $gd_a['year']); 8 $b_new = mktime(12, 0, 0, $gd_b['mon'], $gd_b['mday'], $gd_b['year']); 9 return round(abs($a_new - $b_new) / 86400); 10 10 } 11 11 12 $db->select_db($Config['Mangos'][' DatabaseCharacters']);12 $db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 13 13 $id = (isset($_GET['id'])) ? $_GET['id'] : 0; 14 14 if($id != 0) … … 59 59 $query = $db->query('SELECT `race`,`class`,`online`, `account`, `logout_time`, SUBSTRING_INDEX(SUBSTRING_INDEX(`characters`.`data`, " ", '.$Config['Mangos']['CharacterDataOffset']['Level'].' + 1), " ", -1) AS level, mid(lpad( hex( CAST(substring_index(substring_index(data, " ", '.($Config['Mangos']['CharacterDataOffset']['Gender'] + 1).'), " ", -1) as unsigned) ), 8, 0), 4, 1) as gender FROM `characters` WHERE `guid` = '.$member[0].' LIMIT 1;'); 60 60 $online = $query->fetch_assoc(); 61 62 61 $accid = $online['account']; 62 63 63 $LogoutTime = count_days($online['logout_time'], time()); 64 64 $LogoutTimeColorList = array(0 => '#0000CC', 5 => '#FFFF00', 15 => '#FF8000', 30 => '#FF0000', 60 => '#FF00FF', 90 => '#8000FF'); … … 69 69 } 70 70 71 71 $Level = $online['level']; 72 72 $LevelColorList = array(9 => '#858585', 19 => '#339900', 29 => '#3300CC', 39 => '#5552FF', 49 => '#FF8000', 59 => '#FF0000', 69 => '#FF00CC', 70 => '#FFF000'); 73 73 $LevelColor = '#FFFFFF'; … … 77 77 } 78 78 79 79 if($online['gender'] == 0) $gender = 0; 80 80 else $gender = 1; 81 81 echo('<tr>'. -
trunk/pages/guildy.php
r595 r609 42 42 </tr>'); 43 43 44 $db->select_db($Config['Mangos'][' DatabaseCharacters']);44 $db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 45 45 46 46 $sql = $db->query('SELECT `guild`.homepage, `guild`.name, `guild`.guildid, `guild`.createdate, COUNT(`guild_member`.`guildid`) AS member_count ,`leader`.`race` IN (1, 3, 4, 7, 11) AS fraction , `leader`.`guid` AS leader FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `characters` AS `memebers` ON `memebers`.`guid`= `guild_member`.`guid` JOIN `characters` AS `leader` ON `leader`.`guid`= `guild`.`leaderguid` GROUP BY guild.name ORDER BY '.$order_by.' '.$order_dir.';'); -
trunk/pages/links.php
r532 r609 5 5 $Links = array 6 6 ( 7 array('URL' => 'http://wow.hisgrak.cz/', 'Description' => 'České informace o WoW'),8 7 array('URL' => 'http://wow.vigudes.cz', 'Description' => 'České informace o WoW'), 9 8 array('URL' => 'http://wow.herniweb.cz/', 'Description' => 'České informace o WoW'), … … 20 19 array('URL' => 'http://www.gotwow.ic.cz/', 'Description' => 'Historie emulace WoW'), 21 20 array('URL' => 'http://www.zdechov.net/', 'Description' => 'Komunitní počítačová síť, ve které je provozován tento server'), 22 array('URL' => 'http://game.zdechov.net/', 'Description' => 'Rozcestník tohoto herního serveru'),23 21 array('URL' => 'http://wowpreklad.zdechov.net/', 'Description' => 'Český překlad WoW'), 24 22 ); 25 23 24 echo('<ul>'); 26 25 foreach($Links as $Link) 27 26 { 28 echo('< a href="'.$Link['URL'].'" target="_blank" title="'.$Link['Description'].'">'.$Link['URL'].'</a> - '.$Link['Description'].'<br />');27 echo('<li><a href="'.$Link['URL'].'" target="_blank" title="'.$Link['Description'].'">'.$Link['URL'].'</a> - '.$Link['Description'].'</li>'); 29 28 } 29 echo('</ul>'); 30 30 31 31 ?> -
trunk/pages/online.php
r595 r609 22 22 23 23 echo('<h3 class="PageTitle">Online hráči</h3>'); 24 echo('<div style="text-align: center">Celkem '.$server->MangosOnline( ).' hráčů.</div>'.24 echo('<div style="text-align: center">Celkem '.$server->MangosOnline($_COOKIE['RealmIndex']).' hráčů.</div>'. 25 25 '<table class="BaseTable"> 26 26 <tr> … … 34 34 MakeLink('Aréna body', 'arena_points').'</th></tr>'); 35 35 36 $db->select_db($Config['Mangos'][' DatabaseCharacters']);36 $db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 37 37 $sql = $db->query('SELECT guid, name, race, class, zone, map, '. 38 38 'CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, " ", '.$Config['Mangos']['CharacterDataOffset']['HonorPoints'].'+1), " ", -1) AS UNSIGNED) AS highest_rank, '. -
trunk/pages/server.php
r608 r609 10 10 <td>'.$server->ServerImg($server->ServerOnline($Config['Web']['WoWServerAddr'], 8085)).'</td> 11 11 </tr> 12 13 12 <tr> 14 <td>Ve hře přítomno</td> 15 <td>'.$server->MangosOnline().' hráčů</td> 13 <td>Celkem světů</td> 14 <td>'.count($Config['Mangos']['RealmList']).'</td> 15 </tr> 16 <tr> 17 <td>Ve všech světech přítomno</td> 18 <td>'.$server->ServerMangosOnline().' hráčů</td> 16 19 </tr> 17 20 <tr> … … 24 27 </tr> 25 28 <tr> 26 <td>V databáziuloženo</td>27 <td>'.$server-> CharacterCount().' postav</td>29 <td>Ve všech světech uloženo</td> 30 <td>'.$server->ServerCharacterCount().' postav</td> 28 31 </tr> 29 32 <tr> -
trunk/pages/tophraci.php
r589 r609 14 14 } 15 15 16 17 16 function getOnline($online) 18 17 { 19 if ($online == 1): 20 $status = '<span style="color: green;">Online</span>'; 21 else: 22 $status = '<span style="color: red;">Offline</span>'; 23 endif; 24 18 if($online == 1) $status = '<span style="color: green;">Online</span>'; 19 else $status = '<span style="color: red;">Offline</span>'; 25 20 return($status); 26 21 } 27 22 28 $db->select_db($Config['Mangos'][' DatabaseCharacters']);23 $db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 29 24 $sql = 'SELECT name, totaltime, online FROM characters ORDER BY totaltime DESC LIMIT '.$top; 30 25 $result = $db->query($sql);
Note:
See TracChangeset
for help on using the changeset viewer.