From a9bf63038c3edf50c167294858f6676af0ed7c6a Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 15 Mar 2012 10:48:47 +0545 Subject: When called with the 'cron' parameter, add config.inc to the require_once list. config.inc will set date.timezone, thus avoiding PHP messages about use of the date() and mktime() functions. --- config/pf-blocker/pfblocker.php | 1 + 1 file changed, 1 insertion(+) (limited to 'config/pf-blocker/pfblocker.php') diff --git a/config/pf-blocker/pfblocker.php b/config/pf-blocker/pfblocker.php index cf0df89f..af489b81 100644 --- a/config/pf-blocker/pfblocker.php +++ b/config/pf-blocker/pfblocker.php @@ -23,6 +23,7 @@ if ($argv[1]=='cron'){ require_once("/etc/inc/pkg-utils.inc"); require_once("/etc/inc/globals.inc"); require_once("/etc/inc/filter.inc"); + require_once("/etc/inc/config.inc"); $hour=date('H'); $pfbdir='/usr/local/pkg/pfblocker'; $updates=0; -- cgit v1.2.3