aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rrd.php
diff options
context:
space:
mode:
authorPim van den Berg2013-05-20 21:37:46 +0200
committerPim van den Berg2013-05-20 21:37:46 +0200
commit34bdd032c191b503520f9cce8e4d64803031c3fe (patch)
treef3a75a02e9515e16c84c1da519e693e082d134d5 /rrd.php
parentupdate changelog to v0.4 (diff)
downloadapt-panopticon_cgp-34bdd032c191b503520f9cce8e4d64803031c3fe.zip
apt-panopticon_cgp-34bdd032c191b503520f9cce8e4d64803031c3fe.tar.gz
apt-panopticon_cgp-34bdd032c191b503520f9cce8e4d64803031c3fe.tar.bz2
apt-panopticon_cgp-34bdd032c191b503520f9cce8e4d64803031c3fe.tar.xz
remove dependency on mod_rewrite for rrd.php
Use $_SERVER['PATH_INFO'] instead.
Diffstat (limited to 'rrd.php')
-rw-r--r--rrd.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/rrd.php b/rrd.php
index 58614a0..a6f341a 100644
--- a/rrd.php
+++ b/rrd.php
@@ -4,7 +4,7 @@ require_once 'conf/common.inc.php';
4require_once 'inc/functions.inc.php'; 4require_once 'inc/functions.inc.php';
5require_once 'inc/html.inc.php'; 5require_once 'inc/html.inc.php';
6 6
7if ($file = validateRRDPath($CONFIG['datadir'], $_GET['path'])) { 7if ($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")));