Fixed cosemtic naming of firewall groups for webinterface.
authorChristian Schmidt <maniacikarus@ipfire.org>
Fri, 23 Apr 2010 11:21:09 +0000 (13:21 +0200)
committerChristian Schmidt <maniacikarus@ipfire.org>
Fri, 23 Apr 2010 11:21:09 +0000 (13:21 +0200)
html/cgi-bin/updatexlrator.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl
langs/fr/cgi-bin/fr.pl
src/misc-progs/wirelessctrl.c

index 65f6b26..fefbda8 100644 (file)
@@ -1,5 +1,4 @@
 #!/usr/bin/perl
-#!/usr/bin/perl
 #
 # This code is distributed under the terms of the GPL
 #
@@ -12,7 +11,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2009  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2005-2010  IPTifre Team                                       #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -549,40 +548,40 @@ END
                print "\t\t<td align='center' nowrap='nowrap'>&nbsp;";
                if (&getPID("\\s/usr/bin/wget\\s.*\\s".quotemeta($dlinfo{'SRCURL'})."\$"))
                {
-                       print "<img src='/images/updxl-led-blue.gif' alt='$Lang::tr{'updxlrtr condition download'}' />&nbsp;</td>\n";
+                       print "<img src='/images/updbooster/updxl-led-blue.gif' alt='$Lang::tr{'updxlrtr condition download'}' />&nbsp;</td>\n";
                } else {
-                       print "<img src='/images/updxl-led-gray.gif' alt='$Lang::tr{'updxlrtr condition suspended'}' />&nbsp;</td>\n";
+                       print "<img src='/images/updbooster/updxl-led-gray.gif' alt='$Lang::tr{'updxlrtr condition suspended'}' />&nbsp;</td>\n";
                }
 
                        print "\t\t<td align='center' nowrap='nowrap'>&nbsp;";
                        if ($vendorid =~ /^Adobe$/i)
                        {
-                               print "<img src='/images/updxl-src-adobe.gif' alt='Adobe'}' />&nbsp;</td>\n";
+                               print "<img src='/images/updbooster/updxl-src-adobe.gif' alt='Adobe'}' />&nbsp;</td>\n";
                        } elsif ($vendorid =~ /^Microsoft$/i)
                        {
-                               print "<img src='/images/updxl-src-windows.gif' alt='Microsoft'}' />&nbsp;</td>\n";
+                               print "<img src='/images/updbooster/updxl-src-windows.gif' alt='Microsoft'}' />&nbsp;</td>\n";
                        } elsif ($vendorid =~ /^Symantec$/i)
                        {
-                               print "<img src='/images/updxl-src-symantec.gif' alt='Symantec'}' />&nbsp;</td>\n";
+                               print "<img src='/images/updbooster/updxl-src-symantec.gif' alt='Symantec'}' />&nbsp;</td>\n";
                        } elsif ($vendorid =~ /^Linux$/i)
                        {
-                               print "<img src='/images/updxl-src-linux.gif' alt='Linux'}' />&nbsp;</td>\n";
+                               print "<img src='/images/updbooster/updxl-src-linux.gif' alt='Linux'}' />&nbsp;</td>\n";
                        } elsif ($vendorid =~ /^TrendMicro$/i)
                        {
-                               print "<img src='/images/updxl-src-trendmicro.gif' alt='Trend Micro'}' />&nbsp;</td>\n";
+                               print "<img src='/images/updbooster/updxl-src-trendmicro.gif' alt='Trend Micro'}' />&nbsp;</td>\n";
                        } elsif ($vendorid =~ /^Apple$/i)
                        {
-                               print "<img src='/images/updxl-src-apple.gif' alt='Apple'}' />&nbsp;</td>\n";
+                               print "<img src='/images/updbooster/updxl-src-apple.gif' alt='Apple'}' />&nbsp;</td>\n";
                        } elsif ($vendorid =~ /^Avast$/i)
                        {
-                               print "<img src='/images/updxl-src-avast.gif' alt='Avast'}' />&nbsp;</td>\n";
+                               print "<img src='/images/updbooster/updxl-src-avast.gif' alt='Avast'}' />&nbsp;</td>\n";
                        } else
                        {
-                               if (-e "/home/httpd/html/images/updxl-src-" . $vendorid . ".gif")
+                               if (-e "/home/httpd/html/images/updbooster/updxl-src-" . $vendorid . ".gif")
                                {
-                                       print "<img src='/images/updxl-src-" . $vendorid . ".gif' alt='" . ucfirst $vendorid . "' />&nbsp;</td>\n";
+                                       print "<img src='/images/updbooster/updxl-src-" . $vendorid . ".gif' alt='" . ucfirst $vendorid . "' />&nbsp;</td>\n";
                                } else {
-                                       print "<img src='/images/updxl-src-unknown.gif' alt='" . ucfirst $vendorid . "' />&nbsp;</td>\n";
+                                       print "<img src='/images/updbooster/updxl-src-unknown.gif' alt='" . ucfirst $vendorid . "' />&nbsp;</td>\n";
                                }
                        }
 
index 9a6a613..be7817c 100644 (file)
 'out' => 'Aus',
 'outgoing' => 'ausgehend',
 'outgoing firewall' => 'Ausgehende Firewall',
-'outgoing firewall groups' => 'Ausgehende Firewall Gruppen',
+'outgoing firewall groups' => 'Firewall Gruppen',
 'outgoing firewall add ip group' => 'IP Adressgruppen hinzuf├╝gen',
 'outgoing firewall ip groups' => 'Ausgehende Firewall IP Adressgruppen',
 'outgoing firewall view group' => 'Gruppe anzeigen',
index 8906f21..e5390a5 100644 (file)
 'out' => 'Out',
 'outgoing' => 'outgoing',
 'outgoing firewall' => 'Outgoing Firewall',
-'outgoing firewall groups' => 'Outgoing Firewall Groups',
+'outgoing firewall groups' => 'Firewall Groups',
 'outgoing firewall add ip group' => 'Add IP Address Group',
 'outgoing firewall ip groups' => 'Outgoing Firewall IP Adress Groups',
 'outgoing firewall view group' => 'View group',
index feef190..60a5ca0 100644 (file)
 'out' => 'Out',
 'outgoing' => 'sortant',
 'outgoing firewall' => 'Sortant Firewall',
-'outgoing firewall groups' => 'Sortant Firewall Groupe',
+'outgoing firewall groups' => 'Firewall Groupe',
 'outgoing firewall add ip group' => 'Ajouter IP Address Group',
 'outgoing firewall ip groups' => 'Sortant Firewall IP Groupe',
 'outgoing firewall view group' => 'Montrer groupe',
index bfd4527..40fb67e 100644 (file)
@@ -101,8 +101,11 @@ int main(void)
                                                        exit(0);
                                }
 
+                               if (!(fd = fopen(CONFIG_ROOT "/wireless/nodrop", "r")))
+                               {
                                /* register exit handler to ensure the block rule is always present */
                                atexit(exithandler);
+                               }
 
                                if (!(fd = fopen(CONFIG_ROOT "/wireless/config", "r")))
                                {