Changeset 616 for trunk/pages/realmlist.php
- Timestamp:
- Aug 8, 2009, 3:48:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/realmlist.php
r613 r616 15 15 { 16 16 $db->select_db($Config['Mangos']['DatabaseRealmd']); 17 $DbResult = $db->query('SELECT * FROM `realmlist` WHERE id='.$ Index);17 $DbResult = $db->query('SELECT * FROM `realmlist` WHERE id='.$RealmConfig['Id']); 18 18 if($DbResult->num_rows > 0) 19 19 { 20 20 $DbRow = $DbResult->fetch_assoc(); 21 $Output .= '<tr><td><a href="?page=online&RealmIndex='.$Index.'">'.$RealmConfig['Name'].'</a></td><td>'.$RealmConfig['XPRate'].'x</td><td>'.$RealmConfig['Type'].'</td><td>'.$server->ServerImg($server->ServerOnline($DbRow['address'], $DbRow['port'])).'</td><td>'.$server->MangosOnline($ DbRow['id']).' / '.$RealmConfig['MaxOnlinePlayers'].' / '.$server->CharacterCount($Index).'</td></tr>';21 $Output .= '<tr><td><a href="?page=online&RealmIndex='.$Index.'">'.$RealmConfig['Name'].'</a></td><td>'.$RealmConfig['XPRate'].'x</td><td>'.$RealmConfig['Type'].'</td><td>'.$server->ServerImg($server->ServerOnline($DbRow['address'], $DbRow['port'])).'</td><td>'.$server->MangosOnline($Index).' / '.$RealmConfig['MaxOnlinePlayers'].' / '.$server->CharacterCount($Index).'</td></tr>'; 22 22 $Output .= '<tr><td colspan="5">'.$RealmConfig['Description'].'</td></tr>'; 23 23 if(array_key_exists($Index + 1, $Config['Mangos']['RealmList'])) $Output .= '<tr><td colspan="5"> </td></tr>';
Note:
See TracChangeset
for help on using the changeset viewer.