0) {
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$board_id = $line['id'];
$board_type = $line['type'];
$board_dir = $line['name'];
$board_desc = $line['desc'];
$board_image = $line['image'];
$board_includeheader = $line['includeheader'];
}
} else {
die("Invlaid board ID.");
}
} else {
die("Invlaid board ID.");
}
$output .= '
/'.$board_dir.'/ - '.$board_desc.'';
$output .= '
';
if ($board_type=='0'||$board_type=='2') {
$output .= '
';
$output .= print_stylesheets('Futaba');
} else {
$output .= '';
$output .= '';
$output .= '';
}
$output .= '
';
if ($board_type=='1') {
if ($replythread=='0') {
$output .= '';
} else {
$output .= '';
}
} else {
$output .= '';
}
if ($board_type=='0'||$board_type=='2') {
$output .= '';
$output .= display_boardlist(false);
} else {
$output .= display_boardlist(true);
}
//Remove from release
$output .= '';
$ad_top = '185';
$ad_right = '25';
if ($board_type=='1') {
$ad_top -= '50';
} else {
if ($replythread!='0') {
$ad_top += '50';
}
}
if ($board_type=='2') {
$ad_top += '30';
}
if ($board_type!='1') {
$output .= '';
}
if ($board_type=='0'||$board_type=='2') {
$output .= '';
if ($board_image=="") {
if ($chan_headerurl!="") {
$output .= '

';
}
} else if ($board_image!=""&&$board_image!="none") {
$output .= '

';
}
$output .= '/'.$board_dir.'/ - '.$board_desc.'
';
$output .= stripslashes($board_includeheader);
$output .= '
';
} else if ($board_type=='1'&&$replythread=='0') {
//Text board - header
$output .= '
';
if ($listpage<0||$liststooutput<0) {
$output .= '
↓ ■';
}
$output .= '
'.$board_desc.'
';
if ($listpage>=0&&$liststooutput>=0) {
$output .= 'Pages:';
for ($i = 0; $i <= $liststooutput; $i++) {
$output .= ' '.($i+1).'';
}
$output .= '
';
}
$output .= display_textboard_threadlist($board_id,$liststart,$liststooutput);
}
$output = str_replace(chr(9),"",$output);
$output = str_replace(chr(10),"",$output);
$output = str_replace(chr(13),"",$output);
return $output;
}
}
?>