public function php() { parent::checkAuthentification(); parent::checkIfAdmin(); $entries = LogEntry::find('log', 'php'); if ($entries == NULL) { $entries = array(); } else { if ($entries instanceof LogEntry) { $entries = array($entries); } } usort($entries, array('LogEntry', 'compare')); $smarty = new Template(); $smarty->assign('entries', $entries); $smarty->assign('title', System::getLanguage()->_('Log')); $smarty->assign('heading', System::getLanguage()->_('PHPEntries')); $smarty->assign('showPHPEntries', true); $smarty->display('log/log.tpl'); }
protected function onBefore($action = '') { parent::checkAuthentification(); parent::checkIfAdmin(); }
protected function onBefore($action = '') { parent::checkIfAdmin(); }