Changeset 683 for trunk/inc/server.php
- Timestamp:
- Jan 23, 2010, 5:23:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/server.php
r681 r683 13 13 parent::__construct($System); 14 14 $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' ); 16 16 $this->Data = $DbResult->fetch_assoc(); 17 17 $this->ServerDatabase = new Database($this->Data['DatabaseHost'], $this->Data['DatabaseUser'], $this->Data['DatabasePassword'], $this->Data['DatabaseRealmd']); … … 53 53 { 54 54 $TotalCount = 0; 55 $DbResult = $this->Database->query('SELECT Id FROM Realm ');55 $DbResult = $this->Database->query('SELECT Id FROM Realm WHERE Enabled=1'); 56 56 while($DbRow = $DbResult->fetch_assoc()) 57 57 { … … 71 71 { 72 72 $TotalCount = 0; 73 $DbResult = $this->Database->query('SELECT Id FROM Realm ');73 $DbResult = $this->Database->query('SELECT Id FROM Realm WHERE Enabled=1'); 74 74 while($DbRow = $DbResult->fetch_assoc()) 75 75 { … … 372 372 { 373 373 $Output = ''; 374 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Realm ');374 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Realm WHERE Enabled=1'); 375 375 $DbRow = $DbResult->fetch_row(); 376 376 $RealmCount = $DbRow[0];
Note:
See TracChangeset
for help on using the changeset viewer.