signature; } $threadID = createThread($_GET['id'], $user->id, $_POST['title'], $_POST['content'].$forum_signature); if (!$threadID) { page_head("Can't create thread"); echo "Title is possibly missing"; page_tail(); exit(); } 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(); } $logged_in_user = get_logged_in_user(true); // 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:

The goal is to prevent questions from being asked repeatedly. "; } echo "
"; start_table(); if ($category->is_helpdesk) { row1("Submit a new question/problem"); } else { row1("Create a new thread"); } $x = "Title". "
May contain HTML tags"; if ($category->is_helpdesk) { $x .="
Describe your question in a few words. A brief, clear summary will help others with the same question (or an answer) find it. "; } $y = ""; row2($x, $y); $x = "Message". "
May contain HTML tags"; if ($category->is_helpdesk) { $x .= " If you are having software problems, mention the version number of the software, your computer type and operating system. "; } $y = ""; row2($x, $y); row2("", "Add my signature to this post"); row2("", ""); end_forum_table(); echo "
\n"; page_tail(); ?>