]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Firewall: Fixes commit http://git.ipfire.org/?p=people/amarx/ipfire-2.x.git;a=commitd...
authorAlexander Marx <amarx@ipfire.org>
Tue, 26 Nov 2013 12:34:08 +0000 (13:34 +0100)
committerAlexander Marx <amarx@ipfire.org>
Thu, 5 Dec 2013 14:15:37 +0000 (15:15 +0100)
Now all "active" Strings from all languagefiles are checked against the old rule to find out if logging is enabled

Conflicts:
config/firewall/convert-outgoingfw

config/firewall/convert-outgoingfw
langs/de/cgi-bin/de.pl

index 0d7f7d3dd6f12d4b2ef06756acd38bb72c56cde0..d7722f421b5e9cad484d445032135b220f168121 100755 (executable)
@@ -62,6 +62,7 @@ my %fwconfigout=();
 my %fwdsettings=();
 my %ownnet=();
 my %ovpnSettings = ();
+my @active= ('Aktiv', 'aktiv', 'Active', 'Activo', 'Actif', 'Actief', 'Aktywne', 'Активен', 'Aktif');
 &General::readhash("${General::swroot}/ovpn/settings", \%ovpnSettings);
 &General::readhash($outfwsettings,\%outsettings);
 &General::readhash("${General::swroot}/ethernet/settings", \%ownnet);
@@ -382,7 +383,12 @@ sub process_rules
                                $configline[4] =~ s/,/;/g;
                                $remark = $configline[4];
                        }else{$remark = '';}
-                       if($configline[9] eq 'Active'){ $log='ON';}else{$log='';}
+                       #find all "active" tags in all language files and check them against the old config
+                       my $logging='0';
+                       foreach (@active){
+                               $logging='1' if ($_ eq $configline[9]);
+                       }
+                       if($logging eq '1' ){ $log='ON';}else{$log='';}
                        if($configline[10] eq 'on' && $configline[11] eq 'on' && $configline[12] eq 'on' && $configline[13] eq 'on' && $configline[14] eq 'on' && $configline[15] eq 'on' && $configline[16] eq 'on'){
                                if($configline[17] eq '00:00' && $configline[18] eq '00:00'){
                                        $time='';
index 5bcf5c83787a3169ec823977f750dd7bd5d2fd76..dd7eb78152156e683566d7059e0b796e6a2cc7c2 100644 (file)
@@ -71,7 +71,7 @@
 'action' => 'Aktion',
 'activate' => 'aktivieren',
 'activate user' => 'Benutzer aktivieren',
-'active' => 'aktiv',
+'active' => 'Aktiv',
 'add' => 'Hinzufügen',
 'add a host' => 'Host hinzufügen:',
 'add a new rule' => 'Neue Regel hinzufügen:',