aboutsummaryrefslogtreecommitdiffstats
path: root/config/sarg/sarg_frame.php
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-09-19 12:05:33 -0300
committermarcelloc <marcellocoutinho@gmail.com>2012-09-19 12:05:33 -0300
commit13877cb7190125e35bb4e467f0fe827d10334503 (patch)
treed53289c29c0d362ce889508fa3c41a925d997c6e /config/sarg/sarg_frame.php
parentd3ff95f426054f64222e919f22f89a1e3066bb6e (diff)
downloadpfsense-packages-13877cb7190125e35bb4e467f0fe827d10334503.tar.gz
pfsense-packages-13877cb7190125e35bb4e467f0fe827d10334503.tar.bz2
pfsense-packages-13877cb7190125e35bb4e467f0fe827d10334503.zip
sarg - add missing sarg.inc changes to 0.6.1
Diffstat (limited to 'config/sarg/sarg_frame.php')
-rwxr-xr-xconfig/sarg/sarg_frame.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/sarg/sarg_frame.php b/config/sarg/sarg_frame.php
index 04fb7f30..63cb3f3e 100755
--- a/config/sarg/sarg_frame.php
+++ b/config/sarg/sarg_frame.php
@@ -27,7 +27,10 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
-
+$uname=posix_uname();
+if ($uname['machine']=='amd64')
+ ini_set('memory_limit', '250M');
+
if(preg_match("/(\S+)\W(\w+.html)/",$_REQUEST['file'],$matches)){
#https://192.168.1.1/sarg_reports.php?file=2012Mar30-2012Mar30/index.html
$url=$matches[2];