redray
2008-12-21 641cb3bc12271772fdc169ccf3c91430dac27bd0
interface/web/monitor/show_log.php
@@ -30,6 +30,7 @@
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');
@@ -42,7 +43,6 @@
// Importing the GET values
$refresh = (isset($_GET["refresh"]))?intval($_GET["refresh"]):0;
$logParam = $_GET["log"];
/*
 Setting the db-type and the caption
@@ -62,7 +62,11 @@
      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';
@@ -88,7 +92,7 @@
 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) {
@@ -115,8 +119,8 @@
$app->tpl->setVar("title", $title);
$app->tpl->setVar("log_id",$logId);
$app->tpl->setVar("time", getDataTime($logId));
$app->tpl_defaults();
$app->tpl->pparse();
?>
?>