aboutsummaryrefslogtreecommitdiffstats
path: root/config/pf-blocker/pfblocker.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/pf-blocker/pfblocker.php')
-rw-r--r--config/pf-blocker/pfblocker.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/pf-blocker/pfblocker.php b/config/pf-blocker/pfblocker.php
index af489b81..17fb10e7 100644
--- a/config/pf-blocker/pfblocker.php
+++ b/config/pf-blocker/pfblocker.php
@@ -10,11 +10,11 @@ function get_networks($pfb){
print $return;
}
-# to be uncomented when this packages gets stable state
-#if($_SERVER['REMOTE_ADDR']== '127.0.0.1'){
-if (preg_match("/(\w+)/",$_REQUEST['pfb'],$matches))
- get_networks($matches[1]);
-#}
+if($_SERVER['REMOTE_ADDR']== '127.0.0.1'){
+ if (preg_match("/(\w+)/",$_REQUEST['pfb'],$matches)){
+ get_networks($matches[1]);
+ }
+ }
if ($argv[1]=='uc')
pfblocker_get_countries();
if ($argv[1]=='cron'){
@@ -50,7 +50,7 @@ if ($argv[1]=='cron'){
if ($updates > 0){
include "/usr/local/pkg/pfblocker.inc";
- sync_package_pfblocker();
+ sync_package_pfblocker("cron");
}
}