PHP Code:
if (substr($PHP_SELF, -strlen('forumdisplay.php')) == 'forumdisplay.php' || substr($PHP_SELF, -strlen('showthread.php')) == 'showthread.php') {
if($forumid == '') {;
$thread = getthreadinfo($threadid);
$forumid = $thread['forumid'];
}
$foruminfo = getforuminfo($forumid);
$parentlist = explode(",", $foruminfo["parentlist"]);
$header = '';
for ($i=0; $i<count($parentlist) and empty($header); $i++) {
eval("\$header = \"".gettemplate("forumdisplay_header".$parentlist[$i])."\";");
}
if($header == '') {
eval("\$header .= \"".gettemplate('header')."\";");
}
} else {
eval("\$header .= \"".gettemplate('header')."\";");
}
there you go