summaryrefslogtreecommitdiffstats
path: root/usr/local/www/graph.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-06 19:09:33 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-06 19:09:33 +0000
commitbeb54c8fbe2af11ed454fe188d8d43c2808f3cdb (patch)
treef25421c7ea414ba0ad3bb6a14c3925788b676c6d /usr/local/www/graph.php
parentece390c088ad22f445e3d64b25beb869246ddc6c (diff)
downloadpfsense-beb54c8fbe2af11ed454fe188d8d43c2808f3cdb.zip
pfsense-beb54c8fbe2af11ed454fe188d8d43c2808f3cdb.tar.gz
Require user auth
Diffstat (limited to 'usr/local/www/graph.php')
-rwxr-xr-xusr/local/www/graph.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php
index 22313bd..3a592f7 100755
--- a/usr/local/www/graph.php
+++ b/usr/local/www/graph.php
@@ -36,6 +36,11 @@
##|*MATCH=graph.php*
##|-PRIV
+if(!$_SERVER['PHP_AUTH_USER']) {
+ Header("Location: /");
+ exit;
+}
+
header("Last-Modified: " . gmdate( "D, j M Y H:i:s" ) . " GMT" );
header("Expires: " . gmdate( "D, j M Y H:i:s", time() ) . " GMT" );
header("Cache-Control: no-store, no-cache, must-revalidate" ); // HTTP/1.1
OpenPOWER on IntegriCloud