Create a new thread
is_signed_in()) {
trigger_error('You must be signed in to create a thread.');
exit();
}
?>
';
foreach ($errors as $err) {
$errstr .= '' . $err . '';
}
$errstr .= '';
trigger_error($errstr);
} else {
$thread_id = create_thread($thread_subject, $thread_cat);
create_post($post_content, $thread_id, $thread_cat);
header("Location: viewthread.php?id=" . $thread_id);
}
}
?>