From 70281b3a8927b063069fd6c1dda9b07f656b379e Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Sun, 7 Dec 2008 18:21:50 +0000 Subject: Redirect to settings page if not enabled per billm@ --- usr/local/www/status_rrd_graph.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr/local') 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 { -- cgit v1.1