X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fconnscheduler.cgi;h=b257adb2e24c72ef6ba0480cd2c1cdce77ad4079;hb=d8d7dd3bd8aa6b849dd191588e63947aa4444007;hp=f661b38391f6ede3fb29d02b46f5bef10fe0d759;hpb=0937506a8fcf1adbc113373e9c8c097a1324d92a;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/html/cgi-bin/connscheduler.cgi b/html/cgi-bin/connscheduler.cgi index f661b3839..b257adb2e 100644 --- a/html/cgi-bin/connscheduler.cgi +++ b/html/cgi-bin/connscheduler.cgi @@ -1,23 +1,29 @@ #!/usr/bin/perl -# -# IPFire CGI -# based on: -# -# 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"; @@ -25,6 +31,11 @@ require "${General::swroot}/header.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'; my $day; @@ -408,11 +419,11 @@ for my $id ( 0 .. $#CONNSCHED::config ) } elsif ( $id % 2 ) { - $trcolor = ""; + $trcolor = ""; } else { - $trcolor = ""; + $trcolor = ""; } print <
- +
- +
@@ -468,14 +479,6 @@ print <

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