mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 15:32:59 +02:00
index.cgi: Hide blue and green if not enabled
Those were shown when a blue or orange interface was assigned which is not the same as enabled.
This commit is contained in:
@@ -8,6 +8,7 @@ etc/rc.d/rcsysinit.d/S90network-trigger
|
||||
srv/web/ipfire/cgi-bin/firewall.cgi
|
||||
srv/web/ipfire/cgi-bin/fwhosts.cgi
|
||||
srv/web/ipfire/cgi-bin/geoip-block.cgi
|
||||
srv/web/ipfire/cgi-bin/index.cgi
|
||||
srv/web/ipfire/cgi-bin/ovpnmain.cgi
|
||||
srv/web/ipfire/cgi-bin/vpnmain.cgi
|
||||
srv/web/ipfire/html/themes/darkdos/include/style.css
|
||||
|
||||
@@ -301,7 +301,7 @@ END
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
if ( $netsettings{'BLUE_DEV'} ) {
|
||||
if (&Header::blue_used()) {
|
||||
my $sub=&General::iporsubtocidr($netsettings{'BLUE_NETMASK'});
|
||||
print <<END;
|
||||
<tr>
|
||||
@@ -318,7 +318,7 @@ END
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
if ( $netsettings{'ORANGE_DEV'} ) {
|
||||
if (&Header::orange_used()) {
|
||||
my $sub=&General::iporsubtocidr($netsettings{'ORANGE_NETMASK'});
|
||||
print <<END;
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user