From: Alexander Marx Date: Wed, 9 Oct 2013 14:20:54 +0000 (+0200) Subject: Firewall: added JavaScript for services (hide icmp-types when no ICMP selected) X-Git-Tag: v2.15-beta1~186^2~23 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=bfc84eb1537ff5f495da2e540d9a62867a05ae0c Firewall: added JavaScript for services (hide icmp-types when no ICMP selected) --- diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index 90a55948be..3b80c0b66c 100755 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -100,6 +100,43 @@ print< END @@ -1306,7 +1343,7 @@ sub addservice print<
$Lang::tr{'fwhost srv_name'}: - $Lang::tr{'fwhost prot'}: END foreach ("TCP","UDP","ICMP") { @@ -1318,8 +1355,8 @@ END } } print< - $Lang::tr{'fwhost icmptype'} +
- - +
$Lang::tr{'fwhost icmptype'}
$Lang::tr{'fwhost port'}:


+
$Lang::tr{'fwhost port'}:
+


END if ($fwhostsettings{'updatesrv'} eq 'on') @@ -1357,6 +1394,9 @@ END END + if ($fwhostsettings{'PROT'} ne 'ICMP'){ + print""; + } &Header::closebox(); &viewtableservice; }