Changeset 684


Ignore:
Timestamp:
Jan 23, 2010, 5:34:23 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Další chybějící kontroly hodnoty Enabled.
  • Upraveno: Zobrazení nadpisů skupin světů.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/html.php

    r682 r684  
    265265   
    266266    // Check servers online state.
    267     $DbResult = $System->Database->query('SELECT COUNT(*) FROM Logon WHERE Online = 1');
     267    $DbResult = $System->Database->query('SELECT COUNT(*) FROM Logon WHERE Online = 1 AND Enabled=1');
    268268    $DbRow = $DbResult->fetch_row();
    269269    $OnlineState = $DbRow[0] > 0; // Report online state if one of all servers is online.
  • trunk/inc/server.php

    r683 r684  
    383383      '<div>Výběr světa <select name="RealmIndex" onchange="document.getElementById(\'RealmSelection'.$FormNameSufix.'\').submit()">';
    384384     
    385       $DbResult = $this->Database->query('SELECT * FROM Realm');
     385      $DbResult = $this->Database->query('SELECT * FROM Realm WHERE Enabled=1');
    386386      while($Realm = $DbResult->fetch_assoc())
    387387      {
  • trunk/pages/realmlist.php

    r683 r684  
    1515  $Output = '<h2 align="center">Seznam světů</h2>';
    1616
    17   $DbResult = $System->Database->query('SELECT Logon.Name, Logon.Id, Host.Address, Logon.Port FROM Logon JOIN Host ON Host.Id=Logon.Host WHERE Logon.Enabled=1');
     17  $DbResult = $System->Database->query('SELECT Logon.ClientVersion, Logon.Name, Logon.Id, Host.Address, Logon.Port FROM Logon JOIN Host ON Host.Id=Logon.Host WHERE Logon.Enabled=1');
    1818  while($DbRow = $DbResult->fetch_assoc())
    1919  {
    2020    $Server = new Server($System, $DbRow['Id']);
    21     $Output .= '<div style="text-align: center">'.$DbRow['Name'].' <a href="?page=realmlist&amp;Server='.$DbRow['Id'].'">'.$DbRow['Address'];
     21    $Output .= '<div style="text-align: center">'.$DbRow['Name'].' '.$DbRow['ClientVersion'].' - realmlist: <a href="?page=realmlist&amp;Server='.$DbRow['Id'].'">'.$DbRow['Address'];
    2222    if($DbRow['Port'] != 3724) $Output .= ':'.$DbRow['Port'];
    2323    $Output .= '</a></div>';
Note: See TracChangeset for help on using the changeset viewer.