signature;
$add_signature=true;
} else {
$add_signature=false;
}
$threadID = createThread($_GET['id'], $logged_in_user->id, $_POST['title'], $_POST['content'],$add_signature);
if (!$threadID) {
page_head("Can't create thread");
echo "Title is possibly missing";
page_tail();
exit();
}
$thread->id=$threadID;
setThreadLastVisited($logged_in_user,$thread);
header('Location: forum_thread.php?id=' . $threadID);
}
if (!empty($_GET['id'])) {
$forum = getForum($_GET['id']);
$category = getCategory($forum->category);
} else {
echo "Forum ID missing.
";
exit();
}
// TODO: Write a function to do this.
if ($category->is_helpdesk) {
page_head('Help Desk');
} else {
page_head('Forum');
}
show_forum_title($forum, NULL, $category->is_helpdesk);
if ($category->is_helpdesk) {
echo "
The Questions and problems area is designed to help you get questions answered and problems solved by other users. If you have a question or problem: