diff options
Diffstat (limited to 'config/pf-blocker')
-rwxr-xr-x | config/pf-blocker/pfblocker.inc | 4 | ||||
-rw-r--r-- | config/pf-blocker/pfblocker.php | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/config/pf-blocker/pfblocker.inc b/config/pf-blocker/pfblocker.inc index a5e6d880..57d73b57 100755 --- a/config/pf-blocker/pfblocker.inc +++ b/config/pf-blocker/pfblocker.inc @@ -36,6 +36,10 @@ require_once("globals.inc"); require_once("filter.inc"); require_once("services.inc"); +$uname=posix_uname(); +if ($uname['machine']=='amd64') + ini_set('memory_limit', '250M'); + function pfb_text_area_decode($text){ return preg_replace('/\r\n/', "\n",base64_decode($text)); } diff --git a/config/pf-blocker/pfblocker.php b/config/pf-blocker/pfblocker.php index dc9b58dd..cf0df89f 100644 --- a/config/pf-blocker/pfblocker.php +++ b/config/pf-blocker/pfblocker.php @@ -1,4 +1,8 @@ <?php +$uname=posix_uname(); +if ($uname['machine']=='amd64') + ini_set('memory_limit', '250M'); + function get_networks($pfb){ $file='/usr/local/pkg/pfblocker_aliases/'.$pfb.'.txt'; if (file_exists($file)) |