mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
No need to use # in color code, it's already set with this
This commit is contained in:
parent
f31489e5b6
commit
6cfa23eb6e
@ -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']);
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user