summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/authgui.inc2
-rwxr-xr-xusr/local/www/guiconfig.inc6
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index b78a6ca..27e4c88 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -165,7 +165,7 @@ function display_login_form() {
/* Check against locally configured IP addresses, which will catch when someone
port forwards WebGUI access from WAN to an internal IP on the router. */
-global $FilterIflist;
+global $FilterIflist, $nifty_background;
$local_ip = false;
if(strstr($_SERVER['HTTP_HOST'], ":")) {
$http_host_port = explode(":", $_SERVER['HTTP_HOST']);
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 8680c97..1125312 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -281,7 +281,7 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") {
global $g, $nifty_redbox, $nifty_blackbox, $nifty_background;
// Set the Nifty background color if one is not set already (defaults to white)
- if(!$nifty_background)
+ if($nifty_background == "")
$nifty_background = "#FFF";
if(stristr($msg, "apply") != false || stristr($msg, "save") != false || stristr($msg, "create") != false) {
@@ -335,8 +335,8 @@ function print_info_box_np($msg, $name="apply",$value="Apply changes") {
</table>
<script type="text/javascript">
NiftyCheck();
- Rounded("div#redbox","all","#{$nifty_background}","{$nifty_redbox}","smooth");
- Rounded("td#blackbox","all","#{$nifty_background}","{$nifty_blackbox}","smooth");
+ Rounded("div#redbox","all","{$nifty_background}","{$nifty_redbox}","smooth");
+ Rounded("td#blackbox","all","{$nifty_background}","{$nifty_blackbox}","smooth");
</script>
EOFnp;
OpenPOWER on IntegriCloud