Changeset 683 for trunk/inc/server.php


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/server.php

    r681 r683  
    1313    parent::__construct($System);
    1414    $this->Id = $Id;
    15     $DbResult = $this->Database->query('SELECT * FROM Logon WHERE Id='.$Id);
     15    $DbResult = $this->Database->query('SELECT * FROM Logon WHERE Id='.$Id.' AND Enabled=1' );
    1616    $this->Data = $DbResult->fetch_assoc();
    1717    $this->ServerDatabase = new Database($this->Data['DatabaseHost'], $this->Data['DatabaseUser'], $this->Data['DatabasePassword'], $this->Data['DatabaseRealmd']);
     
    5353  {
    5454    $TotalCount = 0;
    55     $DbResult = $this->Database->query('SELECT Id FROM Realm');
     55    $DbResult = $this->Database->query('SELECT Id FROM Realm WHERE Enabled=1');
    5656    while($DbRow = $DbResult->fetch_assoc())
    5757    {
     
    7171  {
    7272    $TotalCount = 0;
    73     $DbResult = $this->Database->query('SELECT Id FROM Realm');
     73    $DbResult = $this->Database->query('SELECT Id FROM Realm WHERE Enabled=1');
    7474    while($DbRow = $DbResult->fetch_assoc())
    7575    {
     
    372372  {
    373373    $Output = '';
    374     $DbResult = $this->Database->query('SELECT COUNT(*) FROM Realm');
     374    $DbResult = $this->Database->query('SELECT COUNT(*) FROM Realm WHERE Enabled=1');
    375375    $DbRow = $DbResult->fetch_row();
    376376    $RealmCount = $DbRow[0];
Note: See TracChangeset for help on using the changeset viewer.