Ignore:
Timestamp:
Jan 23, 2010, 5:23:04 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Nové sloupce Enabled pro povolení/zakázání světů, přihlšaovacích serverů a počítačů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/update_state.php

    r682 r683  
    1313// Check logon servers
    1414$System = new System($Config);
    15 $DbResult = $System->Database->query('SELECT Logon.Id, Host.Address, Logon.Port FROM Logon JOIN Host ON Host.Id=Logon.Host');
     15$DbResult = $System->Database->query('SELECT Logon.Id, Host.Address, Logon.Port FROM Logon JOIN Host ON Host.Id=Logon.Host AND Logon.Enabled=1');
    1616while($Logon = $DbResult->fetch_assoc())
    1717{
     
    2323
    2424// Check realms
    25 $DbResult = $System->Database->query('SELECT Realm.Id, Host.Address, Realm.Port FROM Realm JOIN Host ON Host.Id=Realm.Host');
     25$DbResult = $System->Database->query('SELECT Realm.Id, Host.Address, Realm.Port FROM Realm JOIN Host ON Host.Id=Realm.Host AND Realm.Enabled=1');
    2626while($Realm = $DbResult->fetch_assoc())
    2727{
Note: See TracChangeset for help on using the changeset viewer.