X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fconnscheduler.cgi;h=b257adb2e24c72ef6ba0480cd2c1cdce77ad4079;hb=3961e8317ff6be3eeb27dd8baee6268aaedc0b63;hp=382cefe8ac52911448a443120e7d0961c63068bf;hpb=957fb958c6166364c1b3648098a582b3b112d897;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/html/cgi-bin/connscheduler.cgi b/html/cgi-bin/connscheduler.cgi index 382cefe8ac..b257adb2e2 100644 --- a/html/cgi-bin/connscheduler.cgi +++ b/html/cgi-bin/connscheduler.cgi @@ -1,27 +1,40 @@ #!/usr/bin/perl -# -# IPCop Connection Scheduler Web-Iface -# -# This code is distributed under the terms of the GPL -# -# -# 2006-04-xx created by weizen_42 at ipcop-forum dot de -# 2006-06-xx added reboot and shutdown -# 2006-08-20 added ipsecctrl -# - +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# 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 . # +# # +############################################################################### use strict; # enable only the following on debugging purpose -use warnings; -use CGI::Carp 'fatalsToBrowser'; +#use warnings; +#use CGI::Carp 'fatalsToBrowser'; require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; require "${General::swroot}/header.pl"; -require '/var/ipcop/connscheduler/lib.pl'; +require '/var/ipfire/connscheduler/lib.pl'; + +my %color = (); +my %mainsettings = (); +&General::readhash("${General::swroot}/main/settings", \%mainsettings); +&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color); my $buttontext = $Lang::tr{'add'}; my $hiddenvalue = 'add'; @@ -406,11 +419,11 @@ for my $id ( 0 .. $#CONNSCHED::config ) } elsif ( $id % 2 ) { - $trcolor = ""; + $trcolor = ""; } else { - $trcolor = ""; + $trcolor = ""; } print <
- +
- +
@@ -466,14 +479,6 @@ print <

- - - - - -
  - Connection Scheduler $CONNSCHED::version -
END ;