From: Alexander Marx Date: Tue, 2 Jul 2013 12:55:46 +0000 (+0200) Subject: Forward Firewall: delted subnets from hosts in firewallgroups, colorized all ip-addre... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9b3f1ea1af109e9e455fec3577498d1eab06add;p=people%2Fms%2Fipfire-2.x.git Forward Firewall: delted subnets from hosts in firewallgroups, colorized all ip-addresses from the firewall-groups if possible. Some minor changes in forwardfw.cgi --- diff --git a/html/cgi-bin/forwardfw.cgi b/html/cgi-bin/forwardfw.cgi index cb65dd4473..1c46d143e1 100755 --- a/html/cgi-bin/forwardfw.cgi +++ b/html/cgi-bin/forwardfw.cgi @@ -1614,7 +1614,7 @@ END } print< - $Lang::tr{'fwhost cust srvgrp'}:$Lang::tr{'fwhost cust srvgrp'}$Lang::tr{'fwdfw snat'}"; print"IPFire: @@ -1421,8 +1421,8 @@ END else{ print" ";} my ($ip,$sub)=split(/\//,$customhost{$key}[2]); $customhost{$key}[4]=~s/\s+//g; + print"
$customhost{$key}[0]".&Header::colorize($ip)."$customhost{$key}[3]$customhost{$key}[4]x"; print<$customhost{$key}[0]$ip$customhost{$key}[3]$customhost{$key}[4]x @@ -1511,7 +1511,7 @@ sub viewtablegrp if ($ip eq '' && $customgrp{$key}[2] ne $Lang::tr{'fwhost empty'}){ print "$Lang::tr{'fwhost deleted'}$customgrp{$key}[3]"; }else{ - print"$ip$customgrp{$key}[3]"; + print"".&Header::colorize($ip)."$customgrp{$key}[3]"; } if ($delflag > '1' && $ip ne ''){ print""; @@ -1904,7 +1904,8 @@ sub getipforgroup if ($type eq 'Custom Host'){ foreach my $key (keys %customhost) { if ($customhost{$key}[0] eq $name){ - return $customhost{$key}[2]; + my ($ip,$sub) = split("/",$customhost{$key}[2]); + return $ip; } } } diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 83a09e74a3..847a885a17 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -1074,7 +1074,7 @@ 'fwhost stdnet' => 'Standard networks:', 'fwhost type' => 'Type', 'fwhost used' => 'Used', -'fwhost welcome' => 'Here you can define single Networks, Hosts or Services which can be grouped together. These Networks, Hosts and Groups can then be used in the firewall. You are able to use only a few rules for a big amount of Networks, Hosts or Groups.', +'fwhost welcome' => 'Here you can define single networks, hosts or services which can be grouped together. These networks, hosts and groups can then be used in the firewall. You are able to use only a few rules for a big amount of networks, hosts or groups.', 'fwhost wo subnet' => '(without subnet)', 'free' => 'Free', 'free memory' => 'Free Memory ',