summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-08-14 12:48:30 -0400
committerSteve Beaver <sbeaver@netgate.com>2017-08-14 12:49:50 -0400
commit6e22caab7651e238d552c05ed14d38250b6369f0 (patch)
treeafac3af2c8ed163554daaeedd9172e9739998d3c /src/usr/local
parent508a84edf8c1f5d4d3a6df14356dc074ddcce455 (diff)
downloadpfsense-6e22caab7651e238d552c05ed14d38250b6369f0.zip
pfsense-6e22caab7651e238d552c05ed14d38250b6369f0.tar.gz
New login design back-ported from 2.4
(cherry picked from commit 1605d94079fed5822ef1069eee05541d0ebc20ca)
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/system.php17
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',
OpenPOWER on IntegriCloud