'Restarty', 'Table' => 'Debug', 'Items' => array( 'Time' => array('Type' => 'String', 'Caption' => 'Čas', 'Default' => ''), 'MangosVersion' => array('Type' => 'String', 'Caption' => 'Verze emulátoru', 'Default' => ''), 'DbVersion' => array('Type' => 'String', 'Caption' => 'Verze databáze', 'Default' => ''), 'MaxPlayerCount' => array('Type' => 'Integer', 'Caption' => 'Max. online hráčů', 'Default' => ''), 'Uptime' => array('Type' => 'String', 'Caption' => 'Doba běhu', 'Default' => ''), ), ); var $ItemFormClass = array( 'Title' => 'Záznam restartu', 'Table' => 'Debug', 'Items' => array( 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''), 'MangosVersion' => array('Type' => 'String', 'Caption' => 'Verze emulátoru', 'Default' => ''), 'DbVersion' => array('Type' => 'String', 'Caption' => 'Verze databáze', 'Default' => ''), 'MaxPlayerCount' => array('Type' => 'Integer', 'Caption' => 'Max. online hráčů', 'Default' => ''), 'Uptime' => array('Type' => 'String', 'Caption' => 'Doba běhu', 'Default' => ''), ), ); function ShowListOnRow($Row) { $Row['Time'] = ''.str_replace(' ', ' ', $Row['Time']).''; $Row['Uptime'] = TimeToHumanTime($Row['Uptime']); return($Row); } function ItemList() { if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) { $Realm = new Realm($this->System, $_GET['Id']); if(($this->System->Modules['User']->User['Id'] == $Realm->GetUser()) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)) { $Output = '
'.$Content.''; break; case 'Log': $DbResult = $this->Database->select('Debug', 'Log', 'Id='.$_GET['Id']); $DbRow = $DbResult->fetch_assoc(); $Output .= 'Console standard output log:
'.htmlspecialchars($DbRow['Log']).''; break; case 'Error': $DbResult = $this->Database->select('Debug', 'ErrorLog', 'Id='.$_GET['Id']); $DbRow = $DbResult->fetch_assoc(); $Output .= 'Console error log:
'.htmlspecialchars($DbRow['ErrorLog']).''; break; case 'DbErrors': $DbResult = $this->Database->select('Debug', 'DbErrors', 'Id='.$_GET['Id']); $DbRow = $DbResult->fetch_assoc(); $Output .= 'Database error log:
'.htmlspecialchars($DbRow['DbErrors']).''; break; case 'Configuration': $DbResult = $this->Database->select('Debug', 'Configuration', 'Id='.$_GET['Id']); $DbRow = $DbResult->fetch_assoc(); $Output .= 'Mangos configuration:
'.htmlspecialchars($DbRow['Configuration']).''; break; } } } else $Output = 'Položka nenalezena'; } else $this->SystemMessage('Ladící informace', 'Nemáte oprávnění'); } else $Output = USER_BAD_ROLE; return($Output); } }