From f7c162140c0df1322f80e34e91eace1ee3853a65 Mon Sep 17 00:00:00 2001 From: ms Date: Wed, 22 Aug 2007 19:00:23 +0000 Subject: [PATCH] Firewalloptions entfernt :D git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@805 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- config/menu/50-firewall.menu | 6 -- config/rootfiles/common/apache2 | 1 - html/cgi-bin/optionsfw.cgi | 98 --------------------------------- 3 files changed, 105 deletions(-) delete mode 100644 html/cgi-bin/optionsfw.cgi diff --git a/config/menu/50-firewall.menu b/config/menu/50-firewall.menu index 019e1d6dc..69357b7a0 100644 --- a/config/menu/50-firewall.menu +++ b/config/menu/50-firewall.menu @@ -34,9 +34,3 @@ 'title' => "Universal Plug and Play", 'enabled' => 0, }; - $subfirewall->{'70.fwopts'} = { - 'caption' => $Lang::tr{'options fw'}, - 'uri' => '/cgi-bin/optionsfw.cgi', - 'title' => "$Lang::tr{'options fw'}", - 'enabled' => 1, - }; diff --git a/config/rootfiles/common/apache2 b/config/rootfiles/common/apache2 index d8b6ccd20..dac30e23b 100644 --- a/config/rootfiles/common/apache2 +++ b/config/rootfiles/common/apache2 @@ -1296,7 +1296,6 @@ srv/web/ipfire/cgi-bin/memory.cgi srv/web/ipfire/cgi-bin/modem.cgi srv/web/ipfire/cgi-bin/network.cgi srv/web/ipfire/cgi-bin/networks.cgi -srv/web/ipfire/cgi-bin/optionsfw.cgi srv/web/ipfire/cgi-bin/outgoingfw.cgi srv/web/ipfire/cgi-bin/ovpnmain.cgi srv/web/ipfire/cgi-bin/pakfire.cgi diff --git a/html/cgi-bin/optionsfw.cgi b/html/cgi-bin/optionsfw.cgi deleted file mode 100644 index 5e1dcebc4..000000000 --- a/html/cgi-bin/optionsfw.cgi +++ /dev/null @@ -1,98 +0,0 @@ -#!/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 $ -# -# - -# enable only the following on debugging purpose -#use warnings; -#use CGI::Carp 'fatalsToBrowser'; - -require '/var/ipfire/general-functions.pl'; -require "${General::swroot}/lang.pl"; -require "${General::swroot}/header.pl"; - - -my %checked =(); # Checkbox manipulations - -# File used -my $filename = "${General::swroot}/optionsfw/settings"; - -our %settings=(); -#Settings1 -$settings{'DISABLEPING'} = 'NO'; -$settings{'ACTION'} = ''; # add/edit/remove - -my $errormessage = ''; -my $warnmessage = ''; - -&Header::showhttpheaders(); - -#Get GUI values -&Header::getcgihash(\%settings); - -if ($settings{'ACTION'} eq $Lang::tr{'save'}) { - if ($settings{'DISABLEPING'} !~ /^(NO|ONLYRED|ALL)$/) { - $errormessage = $Lang::tr{'invalid input'}; - goto ERROR; } - unless ($errormessage) { # Everything is ok, save settings - &General::writehash($filename, \%settings); # Save good settings - $settings{'ACTION'} = $Lang::tr{'save'}; # Recreate 'ACTION' - system('/usr/local/bin/setfilters'); - } - - ERROR: # Leave the faulty field untouched -} else { - &General::readhash($filename, \%settings); # Get saved settings and reset to good if needed -} -$checked{'DISABLEPING'}{'NO'} = ''; -$checked{'DISABLEPING'}{'ONLYRED'} = ''; -$checked{'DISABLEPING'}{'ALL'} = ''; -$checked{'DISABLEPING'}{$settings{'DISABLEPING'}} = "checked='checked'"; - -&Header::openpage($Lang::tr{'options fw'}, 1, ''); -&Header::openbigbox('100%', 'left', '', $errormessage); - -if ($errormessage) { - &Header::openbox('100%', 'left', $Lang::tr{'error messages'}); - print "$errormessage "; - &Header::closebox(); -} - -&Header::openbox('100%', 'left', $Lang::tr{'options fw'}); -print "
"; - -print < - - $Lang::tr{'ping disabled'} - - - $Lang::tr{'no'} -   - - - $Lang::tr{'only red'} - - - - $Lang::tr{'all interfaces'} - - - - -END -; -&Header::closebox(); - -&Header::closebigbox(); - -&Header::closepage(); -- 2.39.2