my %color = ();
my %mainsettings = ();
&General::readhash("${General::swroot}/main/settings", \%mainsettings);
-&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color);
+&General::readhash("/srv/web/ipfire/html/themes/ipfire/include/colors.txt", \%color);
my $buttontext = $Lang::tr{'add'};
my $hiddenvalue = 'add';
{
$CONNSCHED::config[$cgiparams{'ID'}]{'ACTIVE'} = 'on';
}
-
+
&CONNSCHED::WriteConfig;
}
if ( $cgiparams{'ACTION'} eq 'edit' )
{
$i = $cgiparams{'ID'};
-
+
$selected_hour = substr($CONNSCHED::config[$i]{'TIME'},0,2);
$selected_minute = substr($CONNSCHED::config[$i]{'TIME'},3,2);
my $col="";
for my $id ( 0 .. $#CONNSCHED::config )
{
- if ( ($cgiparams{'ACTION'} eq 'edit') && ($id == $cgiparams{'ID'}) )
+ if ( ($cgiparams{'ACTION'} eq 'edit') && ($id == $cgiparams{'ID'}) )
{
print "<tr>";
$col="bgcolor='${Header::colouryellow}'";
print "<tr>";
$col="bgcolor='$color{'color20'}'";
}
- else
+ else
{
print "<tr>";
$col="bgcolor='$color{'color22'}'";