From a72ae687c6779a280fe2da176550471b8b3b1771 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Mon, 17 Mar 2014 07:22:24 +0100 Subject: [PATCH] Firewall: Bugfix: Remark in hostgroups and servicegroups was not changeable Another Bugfix: Layout of hostgroups was broken when more than 1 vpn connection is defined. There where dropdownboxes for every vpn connection instead of only one --- html/cgi-bin/fwhosts.cgi | 86 +++++++++++++++++++++++++++++----------- 1 file changed, 63 insertions(+), 23 deletions(-) diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index 2d128f55df..042fdde0c5 100644 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -1236,7 +1236,7 @@ END
$Lang::tr{'remark'}: - +


@@ -1256,7 +1256,7 @@ END - END foreach my $network (sort keys %defaultNetworks) { @@ -1285,7 +1285,7 @@ END - "; END foreach my $key (sort { ncmp($customnetwork{$a}[0],$customnetwork{$b}[0]) } keys %customnetwork) { print""; @@ -1302,7 +1302,7 @@ END - "; END foreach my $key (sort { ncmp($customhost{$a}[0],$customhost{$b}[0]) } keys %customhost) { print""; @@ -1322,7 +1322,7 @@ END - "; END foreach my $key (sort { ncmp($ccdnet{$a}[0],$ccdnet{$b}[0]) } keys %ccdnet) { @@ -1331,10 +1331,17 @@ END print""; } #OVPN clients + my @ovpn_clients=(); foreach my $key (sort { ncmp($ccdhost{$a}[0],$ccdhost{$b}[0]) } keys %ccdhost) { if ($ccdhost{$key}[33] ne ''){ - print< - " if ($show eq ''); END - $show='1'; - print""; + foreach(@ovpn_clients){ + print""; } + print""; } - if ($show eq '1'){$show='';print"";} #OVPN n2n networks + my @OVPN_N2N=(); foreach my $key (sort { ncmp($ccdhost{$a}[1],$ccdhost{$b}[1]) } keys %ccdhost) { if($ccdhost{$key}[3] eq 'net'){ - print< - " END - $show='1'; - print""; + foreach(@OVPN_N2N){ + print""; } + print""; } - if ($show eq '1'){$show='';print"";} #IPsec networks + my @IPSEC_N2N=(); foreach my $key (sort { ncmp($ipsecconf{$a}[0],$ipsecconf{$b}[0]) } keys %ipsecconf) { if ($ipsecconf{$key}[3] eq 'net'){ - print< - " END - $show='1'; - print""; + foreach(@IPSEC_N2N){ + print""; } } - if ($show eq '1'){$show='';print"";} + print""; print""; print""; print"

"; @@ -1479,9 +1500,28 @@ END print<
$Lang::tr{'fwhost addgrpname'}
-
$Lang::tr{'remark'}: -
-
+ +
+ + $Lang::tr{'remark'}: + + + + + + + + + + + + + +
+ + + +
END } if($fwhostsettings{'updatesrvgrp'} eq 'on'){ -- 2.39.2