summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authorheper <heper@users.noreply.github.com>2015-11-08 17:53:56 +0100
committerheper <heper@users.noreply.github.com>2015-11-08 17:53:56 +0100
commit0bd8c142bf1848c0d9c62da0bb28c5533b293cbe (patch)
tree7ebfc34b9d781f5ea26d0cfea5e26ad98a3ca870 /src/usr/local/www/status_rrd_graph.php
parent56743bb16d63ac9b8ee1d4bc37e3125ea6347e55 (diff)
downloadpfsense-0bd8c142bf1848c0d9c62da0bb28c5533b293cbe.zip
pfsense-0bd8c142bf1848c0d9c62da0bb28c5533b293cbe.tar.gz
add dhcpd + workaround make_tabs() globals
Diffstat (limited to 'src/usr/local/www/status_rrd_graph.php')
-rw-r--r--src/usr/local/www/status_rrd_graph.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/usr/local/www/status_rrd_graph.php b/src/usr/local/www/status_rrd_graph.php
index 3ae35c1..615317e 100644
--- a/src/usr/local/www/status_rrd_graph.php
+++ b/src/usr/local/www/status_rrd_graph.php
@@ -71,7 +71,7 @@ require("shaper.inc");
require_once("rrd.inc");
unset($input_errors);
-
+global $dhcpd;
/* if the rrd graphs are not enabled redirect to settings page */
if (!isset($config['rrd']['enable'])) {
header("Location: status_rrd_graph_settings.php");
@@ -271,6 +271,10 @@ foreach ($databases as $database) {
if (stristr($database, "ntpd") && isset($config['ntpd']['statsgraph'])) {
$ntpd = true;
}
+ if (stristr($database, "-dhcpd") && is_array($config['dhcpd'])) {
+ $dhcpd = true;
+ }
+
}
/* append the existing array to the header */
$ui_databases = array_merge($dbheader, $databases);
@@ -413,13 +417,14 @@ function get_dates($curperiod, $graph) {
}
function make_tabs() {
- global $curcat;
+ global $curcat, $queues,$wireless,$cellular,$vpnusers, $captiveportal,$dhcpd;
$tab_array = array();
$tab_array[] = array(gettext("System"), ($curcat == "system"), "status_rrd_graph.php?cat=system");
$tab_array[] = array(gettext("Traffic"), ($curcat == "traffic"), "status_rrd_graph.php?cat=traffic");
$tab_array[] = array(gettext("Packets"), ($curcat == "packets"), "status_rrd_graph.php?cat=packets");
$tab_array[] = array(gettext("Quality"), ($curcat == "quality"), "status_rrd_graph.php?cat=quality");
+
if($queues) {
$tab_array[] = array(gettext("Queues"), ($curcat == "queues"), "status_rrd_graph.php?cat=queues");
@@ -445,6 +450,11 @@ function make_tabs() {
if(isset($config['ntpd']['statsgraph'])) {
$tab_array[] = array("NTP", ($curcat == "ntpd"), "status_rrd_graph.php?cat=ntpd");
}
+
+ if($dhcpd) {
+ $tab_array[] = array(gettext("Dhcp Server"), ($curcat == "dhcpd"), "status_rrd_graph.php?cat=dhcpd");
+ }
+
$tab_array[] = array(gettext("Custom"), ($curcat == "custom"), "status_rrd_graph.php?cat=custom");
$tab_array[] = array(gettext("Settings"), ($curcat == "settings"), "status_rrd_graph_settings.php");
OpenPOWER on IntegriCloud