mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/clamav: reworked menu, added logviewer (#392)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= clamav
|
||||
PLUGIN_VERSION= 1.2
|
||||
PLUGIN_VERSION= 1.3
|
||||
PLUGIN_COMMENT= Antivirus engine for detecting malicious threats
|
||||
PLUGIN_DEPENDS= clamav
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<menu>
|
||||
<Services>
|
||||
<ClamAV cssClass="fa fa-stethoscope" url="/ui/clamav/general/index" />
|
||||
<ClamAV cssClass="fa fa-stethoscope">
|
||||
<Configuration order="10" url="/ui/clamav/general/index"/>
|
||||
<LogFile VisibleName="Log File" order="20" url="/diag_logs_clamav.php"/>
|
||||
</ClamAV>
|
||||
</Services>
|
||||
</menu>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?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 = 2;
|
||||
|
||||
$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';
|
||||
Reference in New Issue
Block a user