redray
2008-10-26 6026b34f90b9694920c7a03d62a03046a9ccfd1f
interface/web/monitor/logview.php
@@ -31,11 +31,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'monitor')) {
   header("Location: ../index.php");
   exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('monitor');
// Loading the template
$app->uses('tpl');
@@ -78,6 +75,9 @@
   case 'clamav':
      $logfile = '/var/log/clamav/clamav.log';
   break;
   case 'ispconfig':
      $logfile = '/var/log/ispconfig/ispconfig.log';
   break;
   default:
      $logfile = '';
   break;
@@ -107,6 +107,7 @@
$app->tpl->setVar("log",$log);
$app->tpl->setVar("logfile",$logfile);
$app->tpl->setVar("logfile_id",$logfile_id);
$app->tpl_defaults();