Changeset 63 for trunk/www/model/server.php
- Timestamp:
- Aug 5, 2009, 8:06:27 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/model/server.php
r62 r63 162 162 } 163 163 164 function UpdateServerList() 164 function UpdateState() 165 { 166 $State = $this->GetState(); 167 $this->Database->update('Server', 'Id='.$this->Id, array( 168 'Online' => $State['Online'], 169 'AccountCount' => $State['AccountCount'], 170 )); 171 } 172 173 function UpdateStateAll() 165 174 { 166 175 $DbResult = $this->Database->select('Server', 'Id'); … … 168 177 { 169 178 $Server = new Server($this->Database, $DbRow['Id']); 170 $ServerState = $Server->GetState(); 171 $this->Database->update('Server', 'Id='.$DbRow['Id'], array( 172 'Online' => $ServerState['Online'], 173 'AccountCount' => $ServerState['AccountCount'], 174 )); 179 $Server->UpdateState(); 175 180 } 176 181 }
Note:
See TracChangeset
for help on using the changeset viewer.