diff options
author | Jared Dillard <jdillard@netgate.com> | 2015-12-02 15:57:32 -0600 |
---|---|---|
committer | Jared Dillard <jdillard@netgate.com> | 2015-12-02 15:57:32 -0600 |
commit | 9d624e6b33cea659247701fefb79f3bbc259fd23 (patch) | |
tree | b6ad7005a9be127bb74b8e776d5c70700c7db88b | |
parent | 8314677674ebecdc53ba97f6a8aa557db8b13c96 (diff) | |
download | pfsense-9d624e6b33cea659247701fefb79f3bbc259fd23.zip pfsense-9d624e6b33cea659247701fefb79f3bbc259fd23.tar.gz |
pull in correct stylesheet on login page
-rw-r--r-- | src/etc/inc/authgui.inc | 20 | ||||
-rw-r--r-- | src/usr/local/www/bootstrap/css/pfSense-dark.css | 4 |
2 files changed, 22 insertions, 2 deletions
diff --git a/src/etc/inc/authgui.inc b/src/etc/inc/authgui.inc index 8907161..a60712d 100644 --- a/src/etc/inc/authgui.inc +++ b/src/etc/inc/authgui.inc @@ -127,11 +127,19 @@ function display_error_form($http_code, $desc) { return; } + $cssfile = "/bootstrap/css/pfSense.css"; + + if (isset($config['system']['webgui']['webguicss'])) { + if(file_exists("bootstrap/css/" . $config['system']['webgui']['webguicss'])) { + $cssfile = "/bootstrap/css/" . $config['system']['webgui']['webguicss']; + } +} + ?> <!DOCTYPE html> <html lang="en"> <head> - <link rel="stylesheet" href="/bootstrap/css/pfSense.css" /> + <link rel="stylesheet" href="<?=$cssfile?>" /> <title><?=gettext("Error: not allowed"); ?></title> </head> <body id="error" class="no-menu"> @@ -222,11 +230,19 @@ if ($local_ip == false) { } } +$cssfile = "/bootstrap/css/pfSense.css"; + +if (isset($config['system']['webgui']['webguicss'])) { + if(file_exists("bootstrap/css/" . $config['system']['webgui']['webguicss'])) { + $cssfile = "/bootstrap/css/" . $config['system']['webgui']['webguicss']; + } +} + ?> <!DOCTYPE html> <html lang="en"> <head> - <link rel="stylesheet" href="/bootstrap/css/pfSense.css" /> + <link rel="stylesheet" href="<?=$cssfile?>" /> <title><?=gettext("Login"); ?></title> <script type="text/javascript"> //<![CDATA{ diff --git a/src/usr/local/www/bootstrap/css/pfSense-dark.css b/src/usr/local/www/bootstrap/css/pfSense-dark.css index 4b6c8b1..ab77e82 100644 --- a/src/usr/local/www/bootstrap/css/pfSense-dark.css +++ b/src/usr/local/www/bootstrap/css/pfSense-dark.css @@ -5,6 +5,10 @@ body { color: #e0e0e0; } +body.no-menu { + background-color: #616161; +} + a { color: #009688; } |