aboutsummaryrefslogtreecommitdiffstats
path: root/config/dansguardian/dansguardian.php
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2012-01-31 19:39:08 -0200
committermarcelloc <marcellocoutinho@gmail.com>2012-01-31 19:39:08 -0200
commit258219b534aeaf160875091f3d7b478d6780ffe6 (patch)
treedf094a0df73b4fbacff8979ded06dc1449322268 /config/dansguardian/dansguardian.php
parent45df2903faaf4396ce4f3abe91f76aea69aabe4a (diff)
downloadpfsense-packages-258219b534aeaf160875091f3d7b478d6780ffe6.tar.gz
pfsense-packages-258219b534aeaf160875091f3d7b478d6780ffe6.tar.bz2
pfsense-packages-258219b534aeaf160875091f3d7b478d6780ffe6.zip
dansguardian - include blacklist and clamav cron update
include custom error template page fix some typos and url call
Diffstat (limited to 'config/dansguardian/dansguardian.php')
-rw-r--r--config/dansguardian/dansguardian.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/dansguardian/dansguardian.php b/config/dansguardian/dansguardian.php
index 844d9fd3..520cdc5c 100644
--- a/config/dansguardian/dansguardian.php
+++ b/config/dansguardian/dansguardian.php
@@ -45,6 +45,7 @@ function fetch_blacklist(){
if (is_url($url)){
conf_mount_rw();
print "file download start..";
+ unlink_if_exists("/usr/local/etc/dansguardian/lists/blacklist.tgz");
exec("/usr/bin/fetch -o /usr/local/etc/dansguardian/lists/blacklist.tgz ".escapeshellarg($url));
chdir ("/usr/local/etc/dansguardian/lists");
if (is_dir ("blacklists.old"))
@@ -54,6 +55,7 @@ function fetch_blacklist(){
if (preg_match("/x\W+(\w+)/",$output[0],$matches)){
if ($matches[1] != "blacklists")
rename("./".$matches[1],"blacklists");
+ read_lists();
}
else
file_notice("Dansguardian - Could not determine Blacklist extract dir. Categories not updated","");