id, $_POST['title'], $_POST['content']);
header('Location: thread.php?id=' . $threadID);
}
if (!empty($_GET['id'])) {
$forum = getForum($_GET['id']);
$category = getCategory($forum->category);
} else {
// TODO: Standard error page
echo "No forum ID was provided.
";
exit();
}
$logged_in_user = get_logged_in_user(true, '../');
// TODO: Write a function to do this.
if ($category->is_helpdesk) {
page_head('Help Desk', $logged_in_user);
} else {
page_head('Forum', $logged_in_user);
}
show_forum_title($forum, NULL, $category->is_helpdesk);
if ($category->is_helpdesk) {
echo "
The ", PROJECT, " Help Desk is designed to help users find answers to questions they might have about our project, software, science, etc.
To ensure that this is effectively achieved, please make sure to skim the questions that have already been posted before posting your own. If your question has already been asked by another user, clicking on the \"I also have this problem\" button in their post will be more effective than re-posting the question.
If you've been unable to find your question already posted, please fill in the fields below to add it to the Help Desk.
"; } echo "\n"; page_tail(); ?>