| | |
| | | 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'); |
| | |
| | | case 'clamav': |
| | | $logfile = '/var/log/clamav/clamav.log'; |
| | | break; |
| | | case 'ispconfig': |
| | | $logfile = '/var/log/ispconfig/ispconfig.log'; |
| | | break; |
| | | default: |
| | | $logfile = ''; |
| | | break; |
| | |
| | | |
| | | $app->tpl->setVar("log",$log); |
| | | $app->tpl->setVar("logfile",$logfile); |
| | | $app->tpl->setVar("logfile_id",$logfile_id); |
| | | |
| | | |
| | | $app->tpl_defaults(); |