aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2012-02-20 00:19:19 -0300
committermarcelloc <marcellocoutinho@gmail.com>2012-02-20 00:19:19 -0300
commitaa2f86a2732608ecf539490c87e50632c69a326b (patch)
treebeca3363f35e8d84f267ad8cebdf45409c680733 /config
parent3f62692c31084b72ab32b431c3fb96c902451b4f (diff)
downloadpfsense-packages-aa2f86a2732608ecf539490c87e50632c69a326b.tar.gz
pfsense-packages-aa2f86a2732608ecf539490c87e50632c69a326b.tar.bz2
pfsense-packages-aa2f86a2732608ecf539490c87e50632c69a326b.zip
pfBlocker - include php memory limit set to 250Mb when amd64 is detected
Diffstat (limited to 'config')
-rwxr-xr-xconfig/pf-blocker/pfblocker.inc4
-rw-r--r--config/pf-blocker/pfblocker.php4
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))