Commit df81ae81 authored by Franco Fichtner's avatar Franco Fichtner

rrd: purge the old frontend, move settings to settings

parent af8f5ab0
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
<Miscellaneous url="/system_advanced_misc.php"/> <Miscellaneous url="/system_advanced_misc.php"/>
<Tunables VisibleName="Tunables" url="/system_advanced_sysctl.php"/> <Tunables VisibleName="Tunables" url="/system_advanced_sysctl.php"/>
<Notifications url="/system_advanced_notifications.php"/> <Notifications url="/system_advanced_notifications.php"/>
<RRDGraphs VisibleName="RRD Graphs" url="/status_rrd_graph_settings.php"/>
</Settings> </Settings>
<Wizard url="/wizard.php" cssClass="fa fa-magic"> <Wizard url="/wizard.php" cssClass="fa fa-magic">
<Step url="/wizard.php*"/> <Step url="/wizard.php*"/>
...@@ -247,9 +248,6 @@ ...@@ -247,9 +248,6 @@
</LoadBalancer> </LoadBalancer>
<NTP url="/status_ntpd.php"/> <NTP url="/status_ntpd.php"/>
<OpenVPN url="/status_openvpn.php"/> <OpenVPN url="/status_openvpn.php"/>
<RRDGraphs VisibleName="RRD Graphs" url="/status_rrd_graph.php">
<Settings url="/status_rrd_graph_settings.php"/>
</RRDGraphs>
<Services url="/status_services.php"> <Services url="/status_services.php">
<ServicesActions url="/status_services.php?*"/> <ServicesActions url="/status_services.php?*"/>
</Services> </Services>
......
...@@ -1129,14 +1129,6 @@ ...@@ -1129,14 +1129,6 @@
"status_openvpn.php*" "status_openvpn.php*"
] ]
}, },
"page-status-rrdgraphs": {
"name": "WebCfg - Status: RRD Graphs page",
"descr": "Allow access to the 'Status: RRD Graphs' page.",
"match": [
"status_rrd_graph.php*",
"status_rrd_graph_img.php*"
]
},
"page-status-rrdgraph-settings": { "page-status-rrdgraph-settings": {
"name": "WebCfg - Status: RRD Graphs settings page", "name": "WebCfg - Status: RRD Graphs settings page",
"descr": "Allow access to the 'Status: RRD Graphs: settings' page.", "descr": "Allow access to the 'Status: RRD Graphs: settings' page.",
......
This diff is collapsed.
This diff is collapsed.
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2007 Seth Mos <seth.mos@dds.nl> Copyright (C) 2007 Seth Mos <seth.mos@dds.nl>
...@@ -98,7 +99,7 @@ foreach($databases as $database) { ...@@ -98,7 +99,7 @@ foreach($databases as $database) {
} }
} }
$pgtitle = array(gettext("Status"),gettext("RRD Graphs")); $pgtitle = array(gettext('System'), gettext('Settings'), gettext('RRD Graphs'));
include("head.inc"); include("head.inc");
?> ?>
...@@ -116,8 +117,6 @@ include("head.inc"); ...@@ -116,8 +117,6 @@ include("head.inc");
<section class="col-xs-12"> <section class="col-xs-12">
<? include("status_rrd_graph_tabs.inc"); ?>
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
......
<?php
$tab_array = array();
if($curcat == "system") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array(gettext("System"), $tabactive, "status_rrd_graph.php?cat=system");
if($curcat == "traffic") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array(gettext("Traffic"), $tabactive, "status_rrd_graph.php?cat=traffic");
if($curcat == "packets") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array(gettext("Packets"), $tabactive, "status_rrd_graph.php?cat=packets");
if($curcat == "quality") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array(gettext("Quality"), $tabactive, "status_rrd_graph.php?cat=quality");
if($wireless) {
if($curcat == "wireless") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array(gettext("Wireless"), $tabactive, "status_rrd_graph.php?cat=wireless");
}
if($cellular) {
if($curcat == "cellular") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array(gettext("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($captiveportal) {
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; }
$tab_array[] = array(gettext("Settings"), $tabactive, "status_rrd_graph_settings.php");
display_top_tabs($tab_array);
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment