mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #934 from nagyrobi/patch-8
Update status_rrd_graph.php
This commit is contained in:
commit
a386971b2d
@ -132,6 +132,14 @@ if ($_GET['option']) {
|
||||
case "captiveportal":
|
||||
$curoption = "allgraphs";
|
||||
break;
|
||||
case "ntpd":
|
||||
if(isset($config['ntpd']['statsgraph'])) {
|
||||
$curoption = "allgraphs";
|
||||
} else {
|
||||
$curoption = "processor";
|
||||
$curcat = "system";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$curoption = "wan";
|
||||
break;
|
||||
@ -229,6 +237,9 @@ foreach($databases as $database) {
|
||||
if(stristr($database, "captiveportal-") && is_array($config['captiveportal'])) {
|
||||
$captiveportal = true;
|
||||
}
|
||||
if(stristr($database, "ntpd") && isset($config['ntpd']['statsgraph'])) {
|
||||
$ntpd = true;
|
||||
}
|
||||
}
|
||||
/* append the existing array to the header */
|
||||
$ui_databases = array_merge($dbheader, $databases);
|
||||
@ -430,6 +441,10 @@ function get_dates($curperiod, $graph) {
|
||||
if($curcat == "captiveportal") { $tabactive = True; } else { $tabactive = False; }
|
||||
$tab_array[] = array("Captive Portal", $tabactive, "status_rrd_graph.php?cat=captiveportal");
|
||||
}
|
||||
if($ntpd) {
|
||||
if($curcat == "ntpd") { $tabactive = True; } else { $tabactive = False; }
|
||||
$tab_array[] = array("NTP", $tabactive, "status_rrd_graph.php?cat=ntpd");
|
||||
}
|
||||
if($curcat == "custom") { $tabactive = True; } else { $tabactive = False; }
|
||||
$tab_array[] = array(gettext("Custom"), $tabactive, "status_rrd_graph.php?cat=custom");
|
||||
if($curcat == "settings") { $tabactive = True; } else { $tabactive = False; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user