| | |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once('tools.inc.php'); |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('monitor'); |
| | |
| | | // Importing the GET values |
| | | $refresh = (isset($_GET["refresh"]))?intval($_GET["refresh"]):0; |
| | | $logParam = $_GET["log"]; |
| | | |
| | | |
| | | /* |
| | | Setting the db-type and the caption |
| | |
| | | break; |
| | | case 'log_messages': |
| | | $logId = 'log_messages'; |
| | | $title = 'Messages (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $title = 'System (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | break; |
| | | case 'log_ispc_cron': |
| | | $logId = 'log_ispc_cron'; |
| | | $title = 'System (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | break; |
| | | case 'log_freshclam': |
| | | $logId = 'log_freshclam'; |
| | |
| | | Attention: the core-moule ist triggered every 5 minutes, |
| | | so reload every 2 minutes is impossible! |
| | | */ |
| | | $refresh_values = array('0' => '- '.$app->lng("No Refresh").' -','5' => '5 '.$app->lng("minutes"),'10' => '10 '.$app->lng("minutes"),'15' => '15 '.$app->lng("minutes"),'30' => '30 '.$app->lng("minutes"),'60 ' => '60'.$app->lng("minutes")); |
| | | $refresh_values = array('0' => '- '.$app->lng("No Refresh").' -','5' => '5 '.$app->lng("minutes"),'10' => '10 '.$app->lng("minutes"),'15' => '15 '.$app->lng("minutes"),'30' => '30 '.$app->lng("minutes"),'60' => '60 '.$app->lng("minutes")); |
| | | $tmp = ''; |
| | | foreach($refresh_values as $key => $val) { |
| | | if($key == $refresh) { |
| | |
| | | |
| | | $app->tpl->setVar("title", $title); |
| | | $app->tpl->setVar("log_id",$logId); |
| | | |
| | | $app->tpl->setVar("time", getDataTime($logId)); |
| | | |
| | | $app->tpl_defaults(); |
| | | $app->tpl->pparse(); |
| | | ?> |
| | | ?> |