add this
$catime = $catarray[4];
before this
}else{
print "Content-type: text/htmlnn";
print "Error: unable to open file (date under Topic Starter)n";
}
and change this
$threadinfo[4]
$TheDatecatfor this
$threadinfo[4]
$TheDatecat $catimedemo http://banco.jogosonline.com.br/cgi-bin/ubbcgi/forumdisplay.cgi?action=topics&forum=Fórum+JOL&number=9
nice idea

. it takes some space in the topic list, but wth.