|
Jup genau. so sieht der komplette teil aus
// thread erstellen
$db->query("INSERT INTO bb".$n."_threads (boardid,prefix,topic,iconid,starttime,starterid,starter,lastposttime,lastp
osterid,lastposter,pollid,important,visible) VALUES ('$boardid','".addslashes($prefix)."','".addslashes($topic)."','$iconid','$
time','$threadstarterid','".addslashes($threadstartername)."','$time','$thr
eadstarterid','".addslashes($threadstartername)."','$poll_id','$important',
'$visible')");
$threadid = $db->insert_id();
// insert post
$db->query("INSERT INTO bb".$n."_posts (threadid,userid,username,iconid,posttopic,posttime,message,allowsmilies,al
lowhtml,allowbbcode,allowimages,showsignature,ipaddress,visible) VALUES ".
"('$threadid','$threadstarterid','".addslashes($threadstartername)."','$
iconid','".addslashes($topic)."','$time','".addslashes($message)."','$allow
smilies','$allowhtml','$allowbbcode','$allowimages','".intval($_POST['shows
ignature'])."','".addslashes($ip_address)."','$visible')");
$postid = $db->insert_id();
// boardinfo updaten
$board_post=$db->query_first("select parentlist from bb".$n."_boards where boardid='$boardid'");$s_board="$boardid";
$db->unbuffered_query("UPDATE bb".$n."_boards SET postcount=postcount+1,lastthreadid='$threadid', lastposttime='$time', lastposterid='$threadstarterid', lastposter='".addslashes($threadstartername)."' WHERE boardid IN ($board_post[parentlist],$s_board)",1);
// threadcount und postcount updaten
$db->unbuffered_query("UPDATE bb".$n."_stats SET threadcount=threadcount+1, postcount=postcount+1", 1);
__________________
|
|