No need to use # in color code, it's already set with this

This commit is contained in:
Scott Ullrich 2010-07-14 17:41:43 -04:00
parent f31489e5b6
commit 6cfa23eb6e
2 changed files with 4 additions and 4 deletions

View File

@ -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']);

View File

@ -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;