diff options
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/system.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php index 26f3926..563f9ae 100644 --- a/src/usr/local/www/system.php +++ b/src/usr/local/www/system.php @@ -97,6 +97,7 @@ $pconfig['timezone'] = $config['system']['timezone']; $pconfig['timeservers'] = $config['system']['timeservers']; $pconfig['language'] = $config['system']['language']; $pconfig['webguicss'] = $config['system']['webgui']['webguicss']; +$pconfig['logincss'] = $config['system']['webgui']['logincss']; $pconfig['webguifixedmenu'] = $config['system']['webgui']['webguifixedmenu']; $pconfig['dashboardcolumns'] = $config['system']['webgui']['dashboardcolumns']; $pconfig['webguileftcolumnhyper'] = isset($config['system']['webgui']['webguileftcolumnhyper']); @@ -198,6 +199,13 @@ if ($_POST) { unset($config['system']['webgui']['webguicss']); } + + if ($_POST['logincss']) { + $config['system']['webgui']['logincss'] = $_POST['logincss']; + } else { + unset($config['system']['webgui']['logincss']); + } + $config['system']['webgui']['loginshowhost'] = $_POST['loginshowhost'] ? true:false; if ($_POST['webguifixedmenu']) { @@ -619,6 +627,15 @@ gen_associatedpanels_fields( gen_requirestatefilter_field($section, $pconfig['requirestatefilter']); gen_webguileftcolumnhyper_field($section, $pconfig['webguileftcolumnhyper']); +$section->addInput(new Form_Select( + 'logincss', + 'Login page color', + $pconfig['logincss'], + ["1e3f75;" => gettext("Blue"), "003300" => gettext("Green"), "770101" => gettext("Red"), + "4b1263" => gettext("Purple"), "424142" => gettext("Gray"), "333333" => gettext("Dark gray"), + "633215" => gettext("Brown" ), "bf7703" => gettext("Orange")] +))->setHelp('Choose a color for the login page'); + $section->addInput(new Form_Checkbox( 'loginshowhost', 'Login hostname', |