diff options
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r-- | etc/inc/authgui.inc | 10 |
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 |