fetchq("SELECT * FROM forums WHERE id=$id");
$windowtitle = "$boardname -- $forum[title] -- New Thread";
$specialscheme = $forum['specialscheme'];
// Stop this insanity. Never index newthread.
$meta['noindex'] = true;
require 'lib/layout.php';
$forumid=$id;
$fonline=fonlineusers($forumid);
$header=makeheader($header1,$headlinks,$header2 ." $tblstart$tccell1s>$fonline$tblend");
$smilies=readsmilies();
replytoolbar(1);
/*
if (false && $id == 27) { //trash forum
print "$header
$tblstart
$tccell1>
No. Stop that, you idiot.
$tblend
$footer";
die();
}
if ($forum['nopolls'] && $poll) {
print "$header
$tblstart
$tccell1>
A for effort, but F for still failing.
$tblend
$footer";
die();
}
*/
print $header;
if($poll) {
$c=1;
$d=0;
while($chtext[$c+$d] || $c < $_POST['count']) {
if($remove[$c+$d]) $d++;
else {
$choices.="Choice $c: $inpt=chtext[$c] SIZE=30 MAXLENGTH=255 VALUE=\"".stripslashes(htmlspecialchars($chtext[$c+$d]))."\">   Color: $inpt=chcolor[$c] SIZE=7 MAXLENGTH=25 VALUE=\"".stripslashes(htmlspecialchars($chcolor[$c+$d]))."\">   Remove
";
$c++;
}
}
$choices.="Choice $c: $inpt=chtext[$c] SIZE=30 MAXLENGTH=255>   Color: $inpt=chcolor[$c] SIZE=7 MAXLENGTH=25>
$inps=paction VALUE=\"Submit changes\"> and show $inpt=count size=4 maxlength=2 VALUE=\"".stripslashes(htmlspecialchars(($_POST['count']) ? $_POST['count'] : $c))."\"> options";
if($mltvote) $checked1='checked';
else $checked0='checked';
}
$posticons=file('posticons.dat');
for($i=0;$posticons[$i];$i++) {
if($iconid==$i) $checked='checked';
$posticonlist.="$radio=iconid value=$i $checked>  ";
$checked='';
if(($i+1)%10==0) $posticonlist.='
';
}
if(!$iconid or $iconid==-1) $checked='checked';
$posticonlist.="
$radio=iconid value=-1 $checked> None
Custom: $inpt=custposticon SIZE=40 MAXLENGTH=100 VALUE=\"". stripslashes($custposticon) ."\">
";
$subject=htmlspecialchars($subject);
$question=htmlspecialchars($question);
if ($nosmilies) $nosmilieschk = " checked";
if ($nohtml) $nohtmlchk = " checked";
if ($nolayout) $nolayoutchk = " checked";
$form=(!$poll?"