Thanks. Merged. On Mon, 2016-01-18 at 10:14 +0100, Erik Kapfer wrote: > Fix for #10879. Added also use strict. > > Signed-off-by: Erik Kapfer > --- > html/cgi-bin/webaccess.cgi | 25 ++++++++++++++++++------- > 1 file changed, 18 insertions(+), 7 deletions(-) > > diff --git a/html/cgi-bin/webaccess.cgi b/html/cgi-bin/webaccess.cgi > index afa3770..0d50f01 100644 > --- a/html/cgi-bin/webaccess.cgi > +++ b/html/cgi-bin/webaccess.cgi > @@ -19,8 +19,18 @@ > # > # > #################################################################### > ########### > > +use strict; > + > +#usable only the following on debugging purpose > +#use warnings; > +#use CGI::Carp 'fatalsToBrowser'; > use CGI; > > +require '/var/ipfire/general-functions.pl'; > +require "${General::swroot}/lang.pl"; > +require "${General::swroot}/header.pl"; > + > + > my $swroot = "/var/ipfire"; > my $apdir = "$swroot/proxy/advanced"; > my $group_def_file = "$apdir/cre/classrooms"; > @@ -31,6 +41,7 @@ my $acl_src_noaccess_mac = > "$apdir/acls/src_noaccess_mac.acl"; > my $banner = "A D V A N C E D   P R O X Y   -   W E B >   A C C E S S   M A N A G E R"; > my %cgiparams; > my %proxysettings; > +my %temp; > > my %acl=(); > my @group_defs=(); > @@ -49,8 +60,8 @@ require "${swroot}/lang.pl"; > > foreach (@groups) > { > - if ($cgiparams{$_} eq $tr{'advproxy mode deny'}) { > $acl{$_}='on'; } > - if ($cgiparams{$_} eq $tr{'advproxy mode allow'}) { > $acl{$_}='off'; } > + if ($cgiparams{$_} eq $Lang::tr{'advproxy mode deny'}) { > $acl{$_}='on'; } > + if ($cgiparams{$_} eq $Lang::tr{'advproxy mode allow'}) { > $acl{$_}='off'; } > } > > &read_all_groups; > @@ -144,7 +155,7 @@ if (($is_supervisor) && > ((defined($proxysettings{'SUPERVISOR_PASSWORD'})) && (!( > { > print < > - color='#000000' size='2'>$tr{'advproxy supervisor password'}: > + color='#000000' size='2'>$Lang::tr{'advproxy supervisor > password'}: > > name='PASSWORD' size='15'> > END > @@ -176,11 +187,11 @@ END > if ((defined($acl{$_})) && ($acl{$_} eq > 'on')) > { > print " align='center'>"; > - print " name='$_' value=' $tr{'advproxy mode allow'} '>"; > + print " name='$_' value=' $Lang::tr{'advproxy mode allow'} '>"; > print " bgcolor='#D00000'> \n"; > } else { > print " align='center'>"; > - print " name='$_' value=' $tr{'advproxy mode deny'} '>"; > + print " name='$_' value=' $Lang::tr{'advproxy mode deny'} '>"; > print " bgcolor='#00A000'> \n"; > } > } > @@ -199,14 +210,14 @@ END > } else { > print " \n"; > print " \n"; > - print " color='#000000' size='2'>$tr{'advproxy no cre groups'}\n"; > + print " color='#000000' size='2'>$Lang::tr{'advproxy no cre > groups'}\n"; > print " \n"; > print " \n"; > } > } else { > print " \n"; > print " \n"; > - print " color='#000000' size='2'>$tr{'advproxy cre disabled'}\n"; > + print " color='#000000' size='2'>$Lang::tr{'advproxy cre > disabled'}\n"; > print " \n"; > print " \n"; > }