open OUT, ">", $NEWCFG or die "ERROR: new config file could not be opened: $!";
print OUT "<?php\n\$this->flushTimeslices();\n";
for(my $i = 0; $i <= $#tsbegin; $i++) {
open OUT, ">", $NEWCFG or die "ERROR: new config file could not be opened: $!";
print OUT "<?php\n\$this->flushTimeslices();\n";
for(my $i = 0; $i <= $#tsbegin; $i++) {