Changeset 48 for trunk/www/platform.php
- Timestamp:
- Jun 20, 2009, 1:46:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/platform.php
r38 r48 50 50 $State['MemoryTotal'] = $this->MemoryTotal(); 51 51 $State['Uptime'] = $this->SystemUptime(); 52 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Server');52 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `Server`'); 53 53 $DbRow = $DbResult->fetch_row(); 54 54 $State['ServerCount'] = $DbRow[0]; 55 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Server WHERE Online= 1');55 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `Server` WHERE `Online` = 1'); 56 56 $DbRow = $DbResult->fetch_row(); 57 57 $State['ServerOnlineCount'] = $DbRow[0]; 58 $DbResult = $this->Database->query('SELECT COUNT(*) FROM User');58 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `User`'); 59 59 $DbRow = $DbResult->fetch_row(); 60 60 $State['UserCount'] = $DbRow[0]; 61 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Emulator');61 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `Emulator`'); 62 62 $DbRow = $DbResult->fetch_row(); 63 63 $State['EmulatorCount'] = $DbRow[0]; 64 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Backup');64 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `Backup`'); 65 65 $DbRow = $DbResult->fetch_row(); 66 66 $State['BackupCount'] = $DbRow[0]; 67 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Task');67 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `Task`'); 68 68 $DbRow = $DbResult->fetch_row(); 69 69 $State['TaskCount'] = $DbRow[0]; 70 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Task WHERE State != 2'); 70 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `Database`'); 71 $DbRow = $DbResult->fetch_row(); 72 $State['DatabaseCount'] = $DbRow[0]; 73 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `Task` WHERE `State` != 2'); 71 74 $DbRow = $DbResult->fetch_row(); 72 75 $State['TaskQueued'] = $DbRow[0];
Note:
See TracChangeset
for help on using the changeset viewer.