build_new_post('thread', $foruminfo, $threadinfo, array(), $newpost, $errors);
print_r($newpost);exit;