aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-04-10 16:06:03 -0300
committermarcelloc <marcellocoutinho@gmail.com>2012-04-10 16:06:03 -0300
commit12d41a2bb0219463ead733614a0ca41b0e7b305f (patch)
treeb10cae4616a68410bcdfe20f6afb880f276c967a
parent1a2be8cf92c27534675aff54e134b338dade1a63 (diff)
downloadpfsense-packages-12d41a2bb0219463ead733614a0ca41b0e7b305f.tar.gz
pfsense-packages-12d41a2bb0219463ead733614a0ca41b0e7b305f.tar.bz2
pfsense-packages-12d41a2bb0219463ead733614a0ca41b0e7b305f.zip
sarg - include some no-cache header info to reports
-rwxr-xr-xconfig/sarg/sarg_frame.php2
-rwxr-xr-xconfig/sarg/sarg_reports.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/config/sarg/sarg_frame.php b/config/sarg/sarg_frame.php
index 5838e36b..c73b720a 100755
--- a/config/sarg/sarg_frame.php
+++ b/config/sarg/sarg_frame.php
@@ -47,6 +47,8 @@ if (file_exists("/usr/local/www/sarg-reports/".$url))
$replace[1]='img src="/sarg-reports'.$prefix.'/$1';
$pattern[2]='@img src="([.a-z/]+)/(\w+\.\w+)@';
$replace[2]='img src="/sarg-reports'.$prefix.'/$1/$2';
+ $pattern[3]='/<head>/';
+ $replace[3]='<head><META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">';
print preg_replace($pattern,$replace,$report);
}
else{
diff --git a/config/sarg/sarg_reports.php b/config/sarg/sarg_reports.php
index 7348ebcf..170ce478 100755
--- a/config/sarg/sarg_reports.php
+++ b/config/sarg/sarg_reports.php
@@ -73,7 +73,7 @@ require("guiconfig.inc");
</table>
</div>
<br>
- <iframe src="/sarg_frame.php/" frameborder=0 width="100%" height="600"></iframe>
+ <iframe src="/sarg_frame.php" frameborder=0 width="100%" height="600"></iframe>
<div id="file_div"></div>
</td>