aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rrd.php
diff options
context:
space:
mode:
Diffstat (limited to 'rrd.php')
-rw-r--r--rrd.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/rrd.php b/rrd.php
index a873bf7..1b5997b 100644
--- a/rrd.php
+++ b/rrd.php
@@ -8,9 +8,9 @@ if ($file = validateRRDPath($CONFIG['datadir'], $_SERVER['PATH_INFO'])) {
8 header('Content-Type: application/octet-stream'); 8 header('Content-Type: application/octet-stream');
9 header('Content-Disposition: attachment; filename='.basename($file)); 9 header('Content-Disposition: attachment; filename='.basename($file));
10 header("Expires: " .date(DATE_RFC822,strtotime($CONFIG['cache']." seconds"))); 10 header("Expires: " .date(DATE_RFC822,strtotime($CONFIG['cache']." seconds")));
11 ob_clean(); 11 if(ob_get_length()) ob_clean();
12 flush(); 12 flush();
13 readfile($file); 13 readfile($file);
14} else { 14} else {
15 header('HTTP/1.0 403 Forbidden'); 15 header('HTTP/1.0 403 Forbidden');
16 16