aboutsummaryrefslogtreecommitdiffstats
path: root/config/sarg/sarg_frame.php
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-10-20 23:56:24 -0200
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-10-20 23:56:24 -0200
commit821067d70cee9aa159920be905a9d91467f31bd6 (patch)
tree84e0b01efc8ab5225f7d0bd43c59d598239ac666 /config/sarg/sarg_frame.php
parentc5abc3905311d69e442989712cceb391719f6deb (diff)
downloadpfsense-packages-821067d70cee9aa159920be905a9d91467f31bd6.tar.gz
pfsense-packages-821067d70cee9aa159920be905a9d91467f31bd6.tar.bz2
pfsense-packages-821067d70cee9aa159920be905a9d91467f31bd6.zip
sarg - mount filesystem rw before report file copy and remove
Diffstat (limited to 'config/sarg/sarg_frame.php')
-rwxr-xr-xconfig/sarg/sarg_frame.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/sarg/sarg_frame.php b/config/sarg/sarg_frame.php
index 4d3421ab..21638247 100755
--- a/config/sarg/sarg_frame.php
+++ b/config/sarg/sarg_frame.php
@@ -68,9 +68,11 @@ if ($report != "" )
#look for graph files inside reports.
if (preg_match_all('/img src="([a-zA-Z0-9._-]+).png/',$report,$images)){
+ conf_mount_rw();
for ($x=0;$x<count($images[1]);$x++){
copy("{$dir}/{$prefix}/{$images[1][$x]}.png","/usr/local/www/sarg-images/temp/{$images[1][$x]}.{$rand}.png");
}
+ conf_mount_ro();
}
print preg_replace($pattern,$replace,$report);
}