summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-07-21 21:47:37 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-07-21 21:47:37 +0000
commit694870530ce003cc7ed5dd102cf7c0e2f4681dd2 (patch)
treebfbde1b1474a251245fd8b880486c8bae12317fb /usr/local/www/status_rrd_graph.php
parente1cb5d69a9ed7bde5f673708b210f95acc05ea0c (diff)
downloadpfsense-694870530ce003cc7ed5dd102cf7c0e2f4681dd2.zip
pfsense-694870530ce003cc7ed5dd102cf7c0e2f4681dd2.tar.gz
Add rrd graph settings page.
Bump config out of line with 1.2 Add rrd config upgrade code.
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rwxr-xr-xusr/local/www/status_rrd_graph.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index 96efa1e..9d5428a 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -3,7 +3,7 @@
/*
status_rrd_graph.php
Part of pfSense
- Copyright (C) 2006 Seth Mos <seth.mos@xs4all.nl>
+ Copyright (C) 2007 Seth Mos <seth.mos@xs4all.nl>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -33,7 +33,11 @@ require("guiconfig.inc");
if ($_GET['cat']) {
$curcat = $_GET['cat'];
} else {
- $curcat = "system";
+ if(! empty($config['rrd']['category'])) {
+ $curcat = $config['rrd']['category'];
+ } else {
+ $curcat = "system";
+ }
}
if ($_GET['option']) {
@@ -51,7 +55,11 @@ if ($_GET['option']) {
if ($_GET['style']) {
$curstyle = $_GET['style'];
} else {
- $curstyle = "inverse";
+ if(! empty($config['rrd']['style'])) {
+ $curstyle = $config['rrd']['style'];
+ } else {
+ $curstyle = "inverse";
+ }
}
$rrddbpath = "/var/db/rrd/";
@@ -103,6 +111,8 @@ include("head.inc");
$tab_array[] = array("Quality", $tabactive, "status_rrd_graph.php?cat=quality");
if($curcat == "queues") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array("Queues", $tabactive, "status_rrd_graph.php?cat=queues");
+ if($curcat == "settings") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("Settings", $tabactive, "status_rrd_graph_settings.php");
display_top_tabs($tab_array);
?>
</td>
OpenPOWER on IntegriCloud