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();
}
get_logged_in_user(true, '../');
if ($category->is_helpdesk) {
doHeader('Help Desk');
} else {
doHeader('Forum');
}
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"; doFooter(); ?>