diff --git a/src/www/status_rrd_graph_settings.php b/src/www/status_rrd_graph_settings.php index c68bcdbc1..a94e48470 100644 --- a/src/www/status_rrd_graph_settings.php +++ b/src/www/status_rrd_graph_settings.php @@ -32,26 +32,6 @@ require_once("rrd.inc"); require_once("interfaces.inc"); $pconfig['enable'] = isset($config['rrd']['enable']); -$pconfig['category'] = $config['rrd']['category']; -$pconfig['style'] = $config['rrd']['style']; -$pconfig['period'] = $config['rrd']['period']; - -$curcat = "settings"; -$categories = array('system' => gettext("System"), - 'traffic' => gettext("Traffic"), - 'packets' => gettext("Packets"), - 'quality' => gettext("Quality"), - 'captiveportal' => gettext("Captive Portal")); - -if(isset($config['ntpd']['statsgraph'])) { - $categories['ntpd'] = gettext("NTP"); -} - -$styles = array('inverse' => gettext("Inverse"), - 'absolute' => gettext("Absolute")); -$periods = array("absolute" => gettext("Absolute Timespans"), - "current" => gettext("Current Period"), - "previous" => gettext("Previous Period")); if ($_POST['ResetRRD']) { mwexec('/bin/rm /var/db/rrd/*'); @@ -67,9 +47,6 @@ if ($_POST['ResetRRD']) { if (!$input_errors) { $config['rrd']['enable'] = $_POST['enable'] ? true : false; - $config['rrd']['category'] = $_POST['category']; - $config['rrd']['style'] = $_POST['style']; - $config['rrd']['period'] = $_POST['period']; write_config(); $retval = 0; @@ -78,27 +55,6 @@ if ($_POST['ResetRRD']) { } } - - -$rrddbpath = "/var/db/rrd/"; -chdir($rrddbpath); -$databases = glob("*.rrd"); - -foreach($databases as $database) { - if(stristr($database, "wireless")) { - $wireless = true; - } - if(stristr($database, "-cellular") && !empty($config['ppps'])) { - $cellular = true; - } - if(stristr($database, "-vpnusers")) { - $vpnusers = true; - } - if(stristr($database, "captiveportal-") && is_array($config['captiveportal'])) { - $captiveportal = true; - } -} - $pgtitle = array(gettext('System'), gettext('Settings'), gettext('RRD Graphs')); include("head.inc"); @@ -136,51 +92,6 @@ include("head.inc");
=gettext("This selects default category.");?>
-=gettext("This selects the default style.");?>
-=gettext("This selects the default period.");?>
-