Changeset 682 for trunk/inc/html.php
- Timestamp:
- Jan 23, 2010, 4:03:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/html.php
r637 r682 263 263 { 264 264 global $server, $Config, $System; 265 266 // Check servers online state. 267 $DbResult = $System->Database->query('SELECT COUNT(*) FROM Logon WHERE Online = 1'); 268 $DbRow = $DbResult->fetch_row(); 269 $OnlineState = $DbRow[0] > 0; // Report online state if one of all servers is online. 265 270 266 271 if(isset($_COOKIE['hof-quick']) AND $_COOKIE['hof-quick'] == 'no') … … 275 280 '<tr>'. 276 281 '<td colspan="2">'. 277 '<strong>Server : </strong>'.$server->OnlineStateImage($ System->NetworkPortState($Config['Web']['WoWServerAddr'], 3724)).'<b> (<a href="?page=realmlist">'.$server->OnlineCharactersCount().' hráčů celkem</a>) | Patch '.$Config['Mangos']['ClientVersion'].' | <a href="'.$Config['Web']['BaseURL'].'/pages/realmlist.wtf">Realmlist</a> | <a href="?page=server">Server info</a> | <a href="?page=realmlist">Seznam světů</a></b>'.282 '<strong>Server : </strong>'.$server->OnlineStateImage($OnlineState).'<b> (<a href="?page=realmlist">'.$server->OnlineCharactersCount().' hráčů celkem</a>) | Patch '.$Config['Mangos']['ClientVersion'].' | <a href="'.$Config['Web']['BaseURL'].'/pages/realmlist.wtf">Realmlist</a> | <a href="?page=server">Server info</a> | <a href="?page=realmlist">Seznam světů</a></b>'. 278 283 '</td></tr></table><br />'); 279 284 }
Note:
See TracChangeset
for help on using the changeset viewer.