summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-07-14 17:36:26 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-07-14 17:36:26 -0400
commitf31489e5b67f1f0620ed839dc393f7954ffe7840 (patch)
treea8bfdbf5d44d19b8c175894102f1ba81c9512dd6 /etc
parent067e48abda86617e4629e59f62e43b6fa3c99cc9 (diff)
downloadpfsense-f31489e5b67f1f0620ed839dc393f7954ffe7840.zip
pfsense-f31489e5b67f1f0620ed839dc393f7954ffe7840.tar.gz
Allow overriding the Nifty corners background color
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/authgui.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index 56e6f4c..b78a6ca 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -221,8 +221,12 @@ if($config['virtualip'])
</head>
<body onload="page_load()">
<div id="login">
- <?php if(is_ipaddr($http_host) && !$local_ip)
- print_info_box(gettext("You are accessing this router by an IP address not configured locally, which may be forwarded by NAT or other means. <br/><br/>If you did not setup this forwarding, you may be the target of a man-in-the-middle attack.")); ?>
+ <?php
+ if(is_ipaddr($http_host) && !$local_ip) {
+ $nifty_background = "#999";
+ print_info_box(gettext("You are accessing this router by an IP address not configured locally, which may be forwarded by NAT or other means. <br/><br/>If you did not setup this forwarding, you may be the target of a man-in-the-middle attack."));
+ }
+ ?>
<form id="iform" name="login_iform" method="post" autocomplete="off" action="<?=$_SERVER['SCRIPT_NAME'];?>">
<h1></h1>
<div id="inputerrors"><?=$_SESSION['Login_Error'];?></div>
@@ -257,4 +261,4 @@ if($config['virtualip'])
<?php
} // end function
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud