summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorJared Dillard <jdillard@netgate.com>2015-12-02 15:57:32 -0600
committerJared Dillard <jdillard@netgate.com>2015-12-02 15:57:32 -0600
commit9d624e6b33cea659247701fefb79f3bbc259fd23 (patch)
treeb6ad7005a9be127bb74b8e776d5c70700c7db88b /src/etc
parent8314677674ebecdc53ba97f6a8aa557db8b13c96 (diff)
downloadpfsense-9d624e6b33cea659247701fefb79f3bbc259fd23.zip
pfsense-9d624e6b33cea659247701fefb79f3bbc259fd23.tar.gz
pull in correct stylesheet on login page
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/authgui.inc20
1 files changed, 18 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{
OpenPOWER on IntegriCloud