aboutsummaryrefslogtreecommitdiffstats
path: root/config/widget-antivirus/antivirus_status.widget.php
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2012-06-11 11:25:03 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2012-06-11 11:25:03 -0300
commit066c6309f567d21e046a999663437c323d39ed77 (patch)
tree899f26d29abf21cd45f8e08ecbda0d9286a0514d /config/widget-antivirus/antivirus_status.widget.php
parent5197883317b9f82bc425e518aae583c2e5df46d8 (diff)
downloadpfsense-packages-066c6309f567d21e046a999663437c323d39ed77.tar.gz
pfsense-packages-066c6309f567d21e046a999663437c323d39ed77.tar.bz2
pfsense-packages-066c6309f567d21e046a999663437c323d39ed77.zip
keep havp and widget working on 2.0 and 2.1 pfsense versions
Diffstat (limited to 'config/widget-antivirus/antivirus_status.widget.php')
-rw-r--r--config/widget-antivirus/antivirus_status.widget.php7
1 files changed, 6 insertions, 1 deletions
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');