diff options
Diffstat (limited to 'src/usr/local/www/system.php')
-rw-r--r-- | src/usr/local/www/system.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php index 86b9d76..858ca00 100644 --- a/src/usr/local/www/system.php +++ b/src/usr/local/www/system.php @@ -68,6 +68,7 @@ $pconfig['webguihostnamemenu'] = $config['system']['webgui']['webguihostnamemenu $pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']); $pconfig['dashboardperiod'] = isset($config['widgets']['period']) ? $config['widgets']['period']:"10"; $pconfig['loginshowhost'] = isset($config['system']['webgui']['loginshowhost']); +$pconfig['requirestatefilter'] = isset($config['system']['webgui']['requirestatefilter']); if (!$pconfig['timezone']) { if (isset($g['default_timezone']) && !empty($g['default_timezone'])) { @@ -177,6 +178,8 @@ if ($_POST) { unset($config['system']['webgui']['dashboardcolumns']); } + $config['system']['webgui']['requirestatefilter'] = $_POST['requirestatefilter'] ? true : false; + if ($_POST['hostname']) { if (!is_hostname($_POST['hostname'])) { $input_errors[] = gettext("The hostname can only contain the characters A-Z, 0-9 and '-'. It may not start or end with '-'."); @@ -519,6 +522,7 @@ gen_associatedpanels_fields( $pconfig['systemlogsfilterpanel'], $pconfig['systemlogsmanagelogpanel'], $pconfig['statusmonitoringsettingspanel']); +gen_requirestatefilter_field($section, $pconfig['requirestatefilter']); gen_webguileftcolumnhyper_field($section, $pconfig['webguileftcolumnhyper']); $section->addInput(new Form_Checkbox( |