Changeset 630 for trunk/pages/online.php
- Timestamp:
- Aug 26, 2009, 3:07:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/online.php
r615 r630 24 24 echo($server->RealmSelection()); 25 25 26 echo('<div style="text-align: center">Celkem '.$server->MangosOnline($_COOKIE['RealmIndex']).' hráčů.</div>'. 26 $Realm = new Realm($System, $_COOKIE['RealmIndex']); 27 echo('<div style="text-align: center">Celkem '.$Realm->OnlineCharactersCount().' hráčů.</div>'. 27 28 '<table class="BaseTable"> 28 29 <tr> … … 36 37 MakeLink('Aréna body', 'arena_points').'</th></tr>'); 37 38 38 $ db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']);39 $sql = $ db->query('SELECT guid, name, race, class, zone, map, '.39 $Realm->Database->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 40 $sql = $Realm->Database->query('SELECT guid, name, race, class, zone, map, '. 40 41 'CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, " ", '.$Config['Mangos']['CharacterDataOffset']['HonorPoints'].'+1), " ", -1) AS UNSIGNED) AS highest_rank, '. 41 42 'CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, " ", '.$Config['Mangos']['CharacterDataOffset']['Level'].' + 1), " ", -1) AS UNSIGNED) AS level, '.
Note:
See TracChangeset
for help on using the changeset viewer.