Changeset 48
- Timestamp:
- Jun 20, 2009, 1:46:49 PM (15 years ago)
- Location:
- trunk/www
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/index.php
r47 r48 65 65 $ServerStatus = $Server->GetState(); 66 66 $Form->Values['Realmlist'] = $Config['Web']['Host'].':'.$Form->Values['NetworkPortRealmd']; 67 unset($Form-> Values['NetworkPortRealmd']);67 unset($Form->Definition['Items']['NetworkPortRealmd']); 68 68 $Form->Values['Uptime'] = $this->System->AddPrefixMultipliers($ServerStatus['Uptime'], '', 4, 'Time'); 69 69 $Form->Values['UsedMemory'] = $this->System->AddPrefixMultipliers($ServerStatus['UsedMemory'] * 1024, 'B', 4, 'Binary'); … … 815 815 '<tr><td>Počet emulátorů</td><td>'.$State['EmulatorCount'].'</td></tr>'. 816 816 '<tr><td>Počet uživatelů</td><td>'.$State['UserCount'].'</td></tr>'. 817 '<tr><td>Počet databází</td><td>'.$State['DatabaseCount'].'</td></tr>'. 817 818 '<tr><td>Počet záloh</td><td>'.$State['BackupCount'].'</td></tr>'. 818 819 '<tr><td>Čekajících/všech úloh ve frontě</td><td>'.$State['TaskQueued'].' / '.$State['TaskCount'].'</td></tr>'. -
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]; -
trunk/www/server.php
r46 r48 162 162 $State['CharacterCount'] = 0; 163 163 $State['AccountCount'] = 0; 164 $State['Uptime'] = 0; 164 165 } 165 166 $State['UsedMemory'] = $this->GetUsedMemory();
Note:
See TracChangeset
for help on using the changeset viewer.