From 258219b534aeaf160875091f3d7b478d6780ffe6 Mon Sep 17 00:00:00 2001 From: marcelloc Date: Tue, 31 Jan 2012 19:39:08 -0200 Subject: dansguardian - include blacklist and clamav cron update include custom error template page fix some typos and url call --- config/dansguardian/dansguardian.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/dansguardian/dansguardian.php') 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",""); -- cgit v1.2.3