Changeset 39 for trunk/www/server.php
- Timestamp:
- Jun 16, 2009, 6:11:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/server.php
r38 r39 137 137 $DbRow = $DbResult->fetch_row(); 138 138 $State['AccountCount'] = $DbRow[0]; 139 $DbResult = $this->Database->query('SELECT uptime FROM server'.$this->Id.'_realmd.uptime AS T ORDER BY T.startstring DESC'); 140 $DbRow = $DbResult->fetch_assoc(); 141 $State['Uptime'] = $DbRow['uptime']; 139 142 } else 140 143 { … … 143 146 $State['AccountCount'] = 0; 144 147 } 148 $State['UsedMemory'] = $this->GetUsedMemory(); 145 149 return($State); 146 150 } … … 345 349 { 346 350 $Output = array(); 347 exec('ps -aux|grep "emulator/'.$this->Server['Database']['Emulator']['Id'].'/bin/mangos-worldd -c server/'.$this->Id.'/etc/mangosd.conf"| grep -v grep', $Output);348 print_r($Output);351 if(isset($this->Server['Database']['Emulator']['Id'])) 352 exec('ps -aux|grep "emulator/'.$this->Server['Database']['Emulator']['Id'].'/bin/mangos-worldd -c server/'.$this->Id.'/etc/mangosd.conf"| grep -v grep', $Output); 349 353 if(count($Output) > 0) 350 354 {
Note:
See TracChangeset
for help on using the changeset viewer.