diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-12-07 18:21:50 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-12-07 18:21:50 +0000 |
commit | 70281b3a8927b063069fd6c1dda9b07f656b379e (patch) | |
tree | c860959267a57f70dae80c584e67d924f82cb28b /usr/local | |
parent | 5209079f7c20b6b12a7566c60a2e6fe63812987f (diff) | |
download | pfsense-70281b3a8927b063069fd6c1dda9b07f656b379e.zip pfsense-70281b3a8927b063069fd6c1dda9b07f656b379e.tar.gz |
Redirect to settings page if not enabled per billm@
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_rrd_graph.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php index 3f80743..a4419c7 100755 --- a/usr/local/www/status_rrd_graph.php +++ b/usr/local/www/status_rrd_graph.php @@ -35,9 +35,13 @@ ##|*MATCH=status_rrd_graph.php* ##|-PRIV - require("guiconfig.inc"); +/* if the rrd graphs are not enabled redirect to settings page */ +if(! isset($config['rrd']['enable'])) { + header("Location: status_rrd_graph_settings.php"); +} + if ($_GET['cat']) { $curcat = $_GET['cat']; } else { |