Changeset 683 for trunk/pages/server.php
- Timestamp:
- Jan 23, 2010, 5:23:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/server.php
r682 r683 1 1 <?php 2 2 3 $DbResult = $System->Database->query('SELECT COUNT(*) FROM Realm ');3 $DbResult = $System->Database->query('SELECT COUNT(*) FROM Realm WHERE Enabled=1'); 4 4 $DbRow = $DbResult->fetch_row(); 5 5 $RealmCount = $DbRow[0]; 6 7 // Check servers online state. 8 $DbResult = $System->Database->query('SELECT COUNT(*) FROM Logon WHERE Online = 1 AND Enabled=1'); 9 $DbRow = $DbResult->fetch_row(); 10 $OnlineState = $DbRow[0] > 0; // Report online state if one of all servers is online. 6 11 7 12 $Output = '<h3 class="PageTitle">Server Heroes of Fantasy</h3>'. … … 12 17 <tr> 13 18 <td>Přihlašovací server je</td> 14 <td>'.$server->OnlineStateImage($ System->NetworkPortState($Config['Web']['WoWServerAddr'], 3724)).'</td>19 <td>'.$server->OnlineStateImage($OnlineState).'</td> 15 20 </tr> 16 21 <tr>
Note:
See TracChangeset
for help on using the changeset viewer.