This commit is contained in:
Ad Schellevis
2019-11-28 22:55:31 +01:00
parent d5f20f6faa
commit 2b96030bcb
3 changed files with 6 additions and 22 deletions
@@ -4,7 +4,10 @@
<patterns>
<pattern>ui/clamav/*</pattern>
<pattern>api/clamav/*</pattern>
<pattern>diag_logs_clamav.php*</pattern>
<pattern>ui/diagnostics/log/clamav/clamd/*</pattern>
<pattern>api/diagnostics/log/clamav/clamd/*</pattern>
<pattern>ui/diagnostics/log/clamav/freshclam/*</pattern>
<pattern>api/diagnostics/log/clamav/freshclam/*</pattern>
</patterns>
</page-services-clamav>
</acl>
@@ -2,9 +2,8 @@
<Services>
<ClamAV cssClass="fa fa-stethoscope">
<Configuration order="10" url="/ui/clamav/general/index"/>
<Log VisibleName="Log File" order="20" url="/diag_logs_clamav.php?type=clamd">
<More url="/diag_logs_clamav.php*" visibility="hidden"/>
</Log>
<LogFile VisibleName="Log / Clamd" order="20" url="/ui/diagnostics/log/clamav/clamd"/>
<LogFile VisibleName="Log / Freshclam" order="30" url="/ui/diagnostics/log/clamav/freshclam"/>
</ClamAV>
</Services>
</menu>
@@ -1,18 +0,0 @@
<?php
$type = 'clamd';
if (isset($_GET['type']) && ($_GET['type'] === 'clamd' || $_GET['type'] === 'freshclam')) {
$type = $_GET['type'];
}
$logfile = "/var/log/clamav/{$type}.log";
$logclog = false;
$logsplit = 5;
$logpills = array();
$logpills[] = array(gettext('Clamd'), true, '/diag_logs_clamav.php?type=clamd');
$logpills[] = array(gettext('Freshclam'), false, '/diag_logs_clamav.php?type=freshclam');
$service_hook = 'clamav';
require_once 'diag_logs_template.inc';