summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph_settings.php
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2010-07-26 16:17:16 -0300
committerVinicius Coque <vinicius.coque@bluepex.com>2010-07-26 16:17:16 -0300
commitd9a0c4b8e86b193821b67783982e66370b399629 (patch)
treea38c6290dbdd9854c57f73dd001d1e9901a53d1e /usr/local/www/status_rrd_graph_settings.php
parent188097024801509c431899e7d9d4382e0a05b204 (diff)
parent4cb9abc3dc4b1faf42f4f8607772f9b652341209 (diff)
downloadpfsense-d9a0c4b8e86b193821b67783982e66370b399629.zip
pfsense-d9a0c4b8e86b193821b67783982e66370b399629.tar.gz
Merge remote branch 'mainline/master'
Conflicts: usr/local/www/services_rfc2136.php usr/local/www/services_snmp.php usr/local/www/status_rrd_graph.php usr/local/www/status_rrd_graph_settings.php
Diffstat (limited to 'usr/local/www/status_rrd_graph_settings.php')
-rwxr-xr-xusr/local/www/status_rrd_graph_settings.php45
1 files changed, 42 insertions, 3 deletions
diff --git a/usr/local/www/status_rrd_graph_settings.php b/usr/local/www/status_rrd_graph_settings.php
index 7de6788..7d80ad2 100755
--- a/usr/local/www/status_rrd_graph_settings.php
+++ b/usr/local/www/status_rrd_graph_settings.php
@@ -3,7 +3,7 @@
/*
status_rrd_graph.php
Part of pfSense
- Copyright (C) 2007 Seth Mos <seth.mos@xs4all.nl>
+ Copyright (C) 2007 Seth Mos <seth.mos@dds.nl>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -77,9 +77,11 @@ if ($_POST) {
}
}
+
+
$rrddbpath = "/var/db/rrd/";
-/* XXX: (billm) do we have an exec() type function that does this type of thing? */
-exec("cd $rrddbpath;/usr/bin/find -name *.rrd", $databases);
+chdir($rrddbpath);
+$databases = glob("*.rrd");
foreach($databases as $database) {
if(stristr($database, "wireless")) {
@@ -91,6 +93,9 @@ foreach($databases as $database) {
if(stristr($database, "cellular")) {
$cellular = true;
}
+ if(stristr($database, "-vpnusers")) {
+ $vpnusers = true;
+ }
}
$pgtitle = array(gettext("Status"),gettext("RRD Graphs"));
@@ -106,6 +111,7 @@ include("head.inc");
<tr>
<td>
<?php
+<<<<<<< HEAD
$tab_array = array();
if($curcat == "system") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array(gettext("System"), $tabactive, "status_rrd_graph.php?cat=system");
@@ -132,6 +138,39 @@ include("head.inc");
if($curcat == "settings") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array(gettext("Settings"), $tabactive, "status_rrd_graph_settings.php");
display_top_tabs($tab_array);
+ $tab_array = array();
+ if($curcat == "system") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("System", $tabactive, "status_rrd_graph.php?cat=system");
+ if($curcat == "traffic") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("Traffic", $tabactive, "status_rrd_graph.php?cat=traffic");
+ if($curcat == "packets") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("Packets", $tabactive, "status_rrd_graph.php?cat=packets");
+ if($curcat == "quality") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("Quality", $tabactive, "status_rrd_graph.php?cat=quality");
+ if($queues) {
+ if($curcat == "queues") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("Queues", $tabactive, "status_rrd_graph.php?cat=queues");
+ if($curcat == "queuedrops") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("QueueDrops", $tabactive, "status_rrd_graph.php?cat=queuedrops");
+ }
+ if($wireless) {
+ if($curcat == "wireless") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("Wireless", $tabactive, "status_rrd_graph.php?cat=wireless");
+ }
+ if($cellular) {
+ if($curcat == "cellular") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("Cellular", $tabactive, "status_rrd_graph.php?cat=cellular");
+ }
+ if($vpnusers) {
+ if($curcat == "vpnusers") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("VPN", $tabactive, "status_rrd_graph.php?cat=vpnusers");
+ }
+ if($curcat == "custom") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("Custom", $tabactive, "status_rrd_graph.php?cat=custom");
+ if($curcat == "settings") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("Settings", $tabactive, "status_rrd_graph_settings.php");
+
+ display_top_tabs($tab_array);
?>
</td>
</tr>
OpenPOWER on IntegriCloud