From 066c6309f567d21e046a999663437c323d39ed77 Mon Sep 17 00:00:00 2001 From: marcelloc Date: Mon, 11 Jun 2012 11:25:03 -0300 Subject: keep havp and widget working on 2.0 and 2.1 pfsense versions --- config/widget-antivirus/antivirus_status.widget.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config/widget-antivirus/antivirus_status.widget.php') diff --git a/config/widget-antivirus/antivirus_status.widget.php b/config/widget-antivirus/antivirus_status.widget.php index 999ca416..c08ffeb8 100644 --- a/config/widget-antivirus/antivirus_status.widget.php +++ b/config/widget-antivirus/antivirus_status.widget.php @@ -36,7 +36,12 @@ require_once("pfsense-utils.inc"); require_once("functions.inc"); define('PATH_CLAMDB', '/var/db/clamav'); -define('PATH_HAVPLOG', '/var/log/access.log'); +$pfSversion = str_replace("\s", "", file_get_contents("/etc/version")); +if(preg_match("/^2.0/",$pfSversion)) + define('PATH_HAVPLOG', '/var/log/havp/access.log'); +else + define('PATH_HAVPLOG', '/var/log/access.log'); + define('PATH_AVSTATUS', '/var/tmp/havp.status'); -- cgit v1.2.3