- Timestamp:
- Jan 23, 2010, 5:23:04 PM (15 years ago)
- Location:
- trunk/inc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/realm.php
r681 r683 11 11 parent::__construct($System); 12 12 $this->Id = $Id; 13 $DbResult = $this->Database->query('SELECT * FROM Realm WHERE Id='.$Id );13 $DbResult = $this->Database->query('SELECT * FROM Realm WHERE Id='.$Id.' AND Enabled=1'); 14 14 $this->Data = $DbResult->fetch_assoc(); 15 15 $this->CharactersDatabase = new Database($this->Data['DatabaseHost'], $this->Data['DatabaseUser'], $this->Data['DatabasePassword'], $this->Data['DatabaseCharacters']); -
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]; -
trunk/inc/update_state.php
r682 r683 13 13 // Check logon servers 14 14 $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'); 16 16 while($Logon = $DbResult->fetch_assoc()) 17 17 { … … 23 23 24 24 // 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'); 26 26 while($Realm = $DbResult->fetch_assoc()) 27 27 {
Note:
See TracChangeset
for help on using the changeset viewer.