Changeset 616
- Timestamp:
- Aug 8, 2009, 3:48:51 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/config.sample.php
r609 r616 33 33 'RealmList' => array( 34 34 1 => array( 35 'Id' => 7, 35 36 'Name' => 'Realm 1' 36 37 'DatabaseCharacters' => 'realm1_characters', -
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.