X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Ffwhosts.cgi;h=042fdde0c5339b1f39c7e20450d442e393ef362f;hp=ceab1873dba2c1851735ba4de84c9d43f92ccadd;hb=a72ae687c6779a280fe2da176550471b8b3b1771;hpb=f620fa34dfe915c2e30d74614e6aeee1c99e2c59 diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index ceab1873d..042fdde0c 100644 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -21,7 +21,8 @@ use strict; # enable only the following on debugging purpose -use warnings; +#use warnings; + use Sort::Naturally; use CGI::Carp 'fatalsToBrowser'; no warnings 'uninitialized'; @@ -1211,12 +1212,12 @@ sub addgrp print< - $Lang::tr{'fwhost addgrpname'} -
+ $Lang::tr{'fwhost addgrpname'} + $Lang::tr{'remark'}: - +
@@ -1225,17 +1226,17 @@ sub addgrp END }else{ print< + - - + + - - + +
$Lang::tr{'fwhost addgrpname'}$Lang::tr{'fwhost addgrpname'}
$Lang::tr{'remark'}:


@@ -1255,7 +1256,7 @@ END - END foreach my $network (sort keys %defaultNetworks) { @@ -1284,7 +1285,7 @@ END - "; END foreach my $key (sort { ncmp($customnetwork{$a}[0],$customnetwork{$b}[0]) } keys %customnetwork) { print""; @@ -1301,7 +1302,7 @@ END - "; END foreach my $key (sort { ncmp($customhost{$a}[0],$customhost{$b}[0]) } keys %customhost) { print""; @@ -1321,7 +1322,7 @@ END - "; END foreach my $key (sort { ncmp($ccdnet{$a}[0],$ccdnet{$b}[0]) } keys %ccdnet) { @@ -1330,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"

"; @@ -1478,9 +1500,28 @@ END print<
$Lang::tr{'fwhost addgrpname'}
-
$Lang::tr{'remark'}: -
-
+ +
+ + $Lang::tr{'remark'}: + + + + + + + + + + + + + +
+ + + +
END } if($fwhostsettings{'updatesrvgrp'} eq 'on'){ @@ -2014,7 +2055,7 @@ sub checkname } sub checkgroup { - &General::readhasharray("$configsrvgrp", \%customservicegrp ); + &General::readhasharray("$configgrp", \%customgrp ); my $name=shift; foreach my $key (keys %customservicegrp) { if($customservicegrp{$key}[0] eq $name){