From 33389bfe67633094c77cb6932455788720079cb1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Mon, 27 Apr 2020 17:56:16 +0200 Subject: [PATCH] optionsfw.cgi: properly translate on/off radio buttons MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch also scrubs a forgotten Smoothwall comment and replaces it by our IPFire template. :-) Signed-off-by: Peter Müller Signed-off-by: Arne Fitzenreiter --- html/cgi-bin/optionsfw.cgi | 84 +++++++++++++++++++++----------------- 1 file changed, 46 insertions(+), 38 deletions(-) diff --git a/html/cgi-bin/optionsfw.cgi b/html/cgi-bin/optionsfw.cgi index 1ab3c7d798..47aba59cbf 100644 --- a/html/cgi-bin/optionsfw.cgi +++ b/html/cgi-bin/optionsfw.cgi @@ -1,16 +1,24 @@ #!/usr/bin/perl -# -# SmoothWall CGIs -# -# This code is distributed under the terms of the GPL -# -# (c) The SmoothWall Team -# -# Copyright (C) 01-02-2002 Graham Smith -# -# $Id: optionsfw.cgi,v 1.1.2.10 2005/10/03 00:34:10 gespinasse Exp $ -# -# +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2014-2020 IPFire 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 # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + # enable only the following on debugging purpose #use warnings; #use CGI::Carp 'fatalsToBrowser'; @@ -206,41 +214,41 @@ END - - - - - - - + + + + + + +
$Lang::tr{'fw logging'}
$Lang::tr{'drop newnotsyn'}on / - off
$Lang::tr{'drop input'}on / - off
$Lang::tr{'drop forward'}on / - off
$Lang::tr{'drop outgoing'}on / - off
$Lang::tr{'drop portscan'}on / - off
$Lang::tr{'drop wirelessinput'}on / - off
$Lang::tr{'drop wirelessforward'}on / - off
$Lang::tr{'drop newnotsyn'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop input'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop forward'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop outgoing'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop portscan'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop wirelessinput'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop wirelessforward'}$Lang::tr{'on'} / + $Lang::tr{'off'}

- - + +
$Lang::tr{'fw blue'}
$Lang::tr{'drop proxy'}on / - off
$Lang::tr{'drop samba'}on / - off
$Lang::tr{'drop proxy'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop samba'}$Lang::tr{'on'} / + $Lang::tr{'off'}

- - - - + + + +
$Lang::tr{'fw settings'}
$Lang::tr{'fw settings color'}on / - off
$Lang::tr{'fw settings remark'}on / - off
$Lang::tr{'fw settings ruletable'}on / - off
$Lang::tr{'fw settings dropdown'}on / - off
$Lang::tr{'fw settings color'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'fw settings remark'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'fw settings ruletable'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'fw settings dropdown'}$Lang::tr{'on'} / + $Lang::tr{'off'}

-- 2.39.5