diff options
author | Phil Davis <phil.davis@world.inf.org> | 2012-03-15 10:48:47 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@world.inf.org> | 2012-03-15 10:48:47 +0545 |
commit | a9bf63038c3edf50c167294858f6676af0ed7c6a (patch) | |
tree | 4e1f27044e72078cdf0d9301bd2d6708f27de1eb /config/pf-blocker/pfblocker.php | |
parent | 0e18c7dc33ae8accef6af364534705679886bde6 (diff) | |
download | pfsense-packages-a9bf63038c3edf50c167294858f6676af0ed7c6a.tar.gz pfsense-packages-a9bf63038c3edf50c167294858f6676af0ed7c6a.tar.bz2 pfsense-packages-a9bf63038c3edf50c167294858f6676af0ed7c6a.zip |
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.
Diffstat (limited to 'config/pf-blocker/pfblocker.php')
-rw-r--r-- | config/pf-blocker/pfblocker.php | 1 |
1 files changed, 1 insertions, 0 deletions
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; |