]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Firewall: Bug10513
authorAlexander Marx <alexander.marx@ipfire.org>
Thu, 17 Apr 2014 09:14:25 +0000 (11:14 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Apr 2014 10:38:59 +0000 (12:38 +0200)
html/cgi-bin/fwhosts.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl

index e8ddf461e68b038145b38338c4cd8323bf7bf3a9..c5e1c28452ca814f5a99286f6e781cbe4b4a0142 100644 (file)
@@ -909,9 +909,6 @@ if ($fwhostsettings{'ACTION'} eq 'deletegrphost')
        }
        &General::writehasharray("$configgrp", \%customgrp);
        &General::firewall_config_changed();
        }
        &General::writehasharray("$configgrp", \%customgrp);
        &General::firewall_config_changed();
-       if ($fwhostsettings{'grpcnt'} > 0){
-               &General::firewall_config_changed();
-       }
        if ($fwhostsettings{'update'} eq 'on'){
                $fwhostsettings{'remark'}= $grpremark;
                $fwhostsettings{'grp_name'}=$grpname;
        if ($fwhostsettings{'update'} eq 'on'){
                $fwhostsettings{'remark'}= $grpremark;
                $fwhostsettings{'grp_name'}=$grpname;
@@ -1843,11 +1840,11 @@ sub viewtablegrp
                                print "$customgrp{$key}[2]</td>";
                        }
                        if ($ip eq '' && $customgrp{$key}[2] ne $Lang::tr{'fwhost err emptytable'}){
                                print "$customgrp{$key}[2]</td>";
                        }
                        if ($ip eq '' && $customgrp{$key}[2] ne $Lang::tr{'fwhost err emptytable'}){
-                               print "<td align='center' $col>$Lang::tr{'fwhost deleted'}</td><td align='center' $col>$customgrp{$key}[3]</td><td width='1%' $col><form method='post'>";
+                               print "<td align='center' $col>$Lang::tr{'fwhost deleted'}</td><td align='center' $col>$Lang::tr{'fwhost '.$customgrp{$key}[3]}</td><td width='1%' $col><form method='post'>";
                        }else{
                                my ($colip,$colsub) = split("/",$ip);
                                $ip="$colip/".&General::iporsubtocidr($colsub) if ($colsub);
                        }else{
                                my ($colip,$colsub) = split("/",$ip);
                                $ip="$colip/".&General::iporsubtocidr($colsub) if ($colsub);
-                               print"<td align='center' $col>".&getcolor($ip)."</td><td align='center' $col>$customgrp{$key}[3]</td><td width='1%' $col><form method='post'>";
+                               print"<td align='center' $col>".&getcolor($ip)."</td><td align='center' $col>$Lang::tr{'fwhost '.$customgrp{$key}[3]}</td><td width='1%' $col><form method='post'>";
                        }
                        if ($delflag > 0 && $ip ne ''){
                                print"<input type='image' src='/images/delete.gif' align='middle' alt='$Lang::tr{'delete'}' title='$Lang::tr{'delete'}' />";
                        }
                        if ($delflag > 0 && $ip ne ''){
                                print"<input type='image' src='/images/delete.gif' align='middle' alt='$Lang::tr{'delete'}' title='$Lang::tr{'delete'}' />";
@@ -1858,8 +1855,7 @@ sub viewtablegrp
                                        }
                                }
                        }
                                        }
                                }
                        }
-                       print"<input type='hidden' name='ACTION' value='deletegrphost'><input type='hidden' name='grpcnt' value='$customgrp{$key}[4]'><input type='hidden' name='update' value='$fwhostsettings{'update'}'><input type='hidden' name='delhost' value='$grpname,$remark,$customgrp{$key}[2],$customgrp{$key}[3]'></form></td></tr>";
-                       
+                       print"<input type='hidden' name='ACTION' value='deletegrphost'><input type='hidden' name='update' value='$fwhostsettings{'update'}'><input type='hidden' name='delhost' value='$grpname,$remark,$customgrp{$key}[2],$customgrp{$key}[3]'></form></td></tr>";
                        $helper=$customgrp{$key}[0];
                        $number++;
                }
                        $helper=$customgrp{$key}[0];
                        $number++;
                }
index 74bd6e887da43bf27e7fb4f1547c601694cae02f..4ee1d8e59a47115b65cad47240c8bd80e98bc462 100644 (file)
 'fwhost changeremark' => 'Es wurde nur die Bemerkung angepasst.',
 'fwhost cust addr' => 'Hosts',
 'fwhost cust grp' => 'Gruppen',
 'fwhost changeremark' => 'Es wurde nur die Bemerkung angepasst.',
 'fwhost cust addr' => 'Hosts',
 'fwhost cust grp' => 'Gruppen',
+'fwhost Custom Host' => 'Host',
 'fwhost cust net' => 'Netzwerke',
 'fwhost cust service' => 'Dienste',
 'fwhost cust srvgrp' => 'Dienstgruppen',
 'fwhost cust net' => 'Netzwerke',
 'fwhost cust service' => 'Dienste',
 'fwhost cust srvgrp' => 'Dienstgruppen',
+'fwhost Custom Network' => 'Netzwerk',
 'fwhost deleted' => 'Gelöscht',
 'fwhost empty' => 'Keine Regeln definiert',
 'fwhost err addr' => 'IP-Adresse oder Subnetzmaske ungültig',
 'fwhost deleted' => 'Gelöscht',
 'fwhost empty' => 'Keine Regeln definiert',
 'fwhost err addr' => 'IP-Adresse oder Subnetzmaske ungültig',
 'fwhost ip_mac' => 'IP/MAC-Adresse',
 'fwhost ipadr' => 'IP-Adresse:',
 'fwhost ipsec host' => 'IPsec-Clients:',
 'fwhost ip_mac' => 'IP/MAC-Adresse',
 'fwhost ipadr' => 'IP-Adresse:',
 'fwhost ipsec host' => 'IPsec-Clients:',
+'fwhost IpSec Host' => 'IPsec-Host',
 'fwhost ipsec net' => 'IPsec-Netzwerke:',
 'fwhost ipsec net' => 'IPsec-Netzwerke:',
+'fwhost IpSec Network' => 'IPsec-Netzwerk',
 'fwhost menu' => 'Firewallgruppen',
 'fwhost netaddress' => 'Netzwerkadresse',
 'fwhost newgrp' => 'Netzwerk-/Hostgruppen',
 'fwhost menu' => 'Firewallgruppen',
 'fwhost netaddress' => 'Netzwerkadresse',
 'fwhost newgrp' => 'Netzwerk-/Hostgruppen',
 'fwhost newservice' => 'Dienst',
 'fwhost newservicegrp' => 'Dienstgruppen',
 'fwhost orange' => 'Orange',
 'fwhost newservice' => 'Dienst',
 'fwhost newservicegrp' => 'Dienstgruppen',
 'fwhost orange' => 'Orange',
+'fwhost OpenVPN static host' => 'OpenVPN statischer Host',
+'fwhost OpenVPN static network' => 'OpenVPN statisches Netzwerk',
+'fwhost OpenVPN N-2-N' => 'OpenVPN Netz-zu-Netz',
 'fwhost ovpn_n2n' => 'OpenVPN Net-to-Net',
 'fwhost port' => 'Port(s)',
 'fwhost prot' => 'Protokoll',
 'fwhost ovpn_n2n' => 'OpenVPN Net-to-Net',
 'fwhost port' => 'Port(s)',
 'fwhost prot' => 'Protokoll',
 'fwhost services' => 'Dienste',
 'fwhost srv_name' => 'Dienstname',
 'fwhost stdnet' => 'Standard-Netzwerke:',
 'fwhost services' => 'Dienste',
 'fwhost srv_name' => 'Dienstname',
 'fwhost stdnet' => 'Standard-Netzwerke:',
+'fwhost Standard Network' => 'Standard-Netzwerk',
 'fwhost type' => 'Typ',
 'fwhost used' => 'Genutzt',
 'fwhost welcome' => 'Hier können einzelne Hosts, Netzwerke oder Dienste zu Gruppen zusammengefasst werden, was das erstellen von Firewallregeln einfacher und schneller macht.',
 'fwhost type' => 'Typ',
 'fwhost used' => 'Genutzt',
 'fwhost welcome' => 'Hier können einzelne Hosts, Netzwerke oder Dienste zu Gruppen zusammengefasst werden, was das erstellen von Firewallregeln einfacher und schneller macht.',
index f8cdf7630c923fb2597b33997d143bb2d8966182..2940ebf4ada5b0fd4812f39658d76a7714185ca6 100644 (file)
 'fwhost changeremark' => 'You modified just the remark',
 'fwhost cust addr' => 'Hosts',
 'fwhost cust grp' => 'Network/Host Groups',
 'fwhost changeremark' => 'You modified just the remark',
 'fwhost cust addr' => 'Hosts',
 'fwhost cust grp' => 'Network/Host Groups',
+'fwhost Custom Host' => 'Host',
 'fwhost cust net' => 'Networks',
 'fwhost cust service' => 'Services',
 'fwhost cust srvgrp' => 'Service Groups',
 'fwhost cust net' => 'Networks',
 'fwhost cust service' => 'Services',
 'fwhost cust srvgrp' => 'Service Groups',
+'fwhost Custom Network' => 'Network',
 'fwhost deleted' => 'Deleted',
 'fwhost empty' => 'No rules defined',
 'fwhost err addr' => 'Invalid IP address or subnet',
 'fwhost deleted' => 'Deleted',
 'fwhost empty' => 'No rules defined',
 'fwhost err addr' => 'Invalid IP address or subnet',
 'fwhost ip_mac' => 'IP/MAC address',
 'fwhost ipadr' => 'IP address:',
 'fwhost ipsec host' => 'IPsec clients:',
 'fwhost ip_mac' => 'IP/MAC address',
 'fwhost ipadr' => 'IP address:',
 'fwhost ipsec host' => 'IPsec clients:',
+'fwhost IpSec Host' => 'IPsec host',
 'fwhost ipsec net' => 'IPsec networks:',
 'fwhost ipsec net' => 'IPsec networks:',
+'fwhost IpSec Network' => 'IPsec network',
 'fwhost menu' => 'Firewall Groups',
 'fwhost netaddress' => 'Network address',
 'fwhost newgrp' => 'Network/Host Groups',
 'fwhost menu' => 'Firewall Groups',
 'fwhost netaddress' => 'Network address',
 'fwhost newgrp' => 'Network/Host Groups',
 'fwhost newservice' => 'Services',
 'fwhost newservicegrp' => 'Service Groups',
 'fwhost orange' => 'Orange',
 'fwhost newservice' => 'Services',
 'fwhost newservicegrp' => 'Service Groups',
 'fwhost orange' => 'Orange',
+'fwhost OpenVPN static host' => 'OpenVPN static host',
+'fwhost OpenVPN static network' => 'OpenVPN static network',
+'fwhost OpenVPN N-2-N' => 'OpenVPN Net-to-Net',
 'fwhost ovpn_n2n' => 'OpenVPN Net-to-Net',
 'fwhost port' => 'Port(s)',
 'fwhost prot' => 'Protocol',
 'fwhost ovpn_n2n' => 'OpenVPN Net-to-Net',
 'fwhost port' => 'Port(s)',
 'fwhost prot' => 'Protocol',
 'fwhost services' => 'Services:',
 'fwhost srv_name' => 'Service name',
 'fwhost stdnet' => 'Standard networks:',
 'fwhost services' => 'Services:',
 'fwhost srv_name' => 'Service name',
 'fwhost stdnet' => 'Standard networks:',
+'fwhost Standard Network' => 'Standard network',
 'fwhost type' => 'Type',
 'fwhost used' => 'Used',
 'fwhost welcome' => 'Over here, you can group single hosts, networks and services together, which will creating new rules more easy and faster.',
 'fwhost type' => 'Type',
 'fwhost used' => 'Used',
 'fwhost welcome' => 'Over here, you can group single hosts, networks and services together, which will creating new rules more easy and faster.',