total_credit<$forum->post_min_total_credit || $logged_in_user->expavg_credit<$forum->post_min_expavg_credit){ //If user haven't got enough credit (according to forum regulations) //We do not tell the (ab)user how much this is - no need to make it easy for them to break the system. error_page( "In order to create a new thread in ".$forum->title." you must have a certain amount of credit. This is to prevent and protect against abuse of the system."); } if (time()-$logged_in_user->last_post<$forum->post_min_interval){ //If the user is posting faster than forum regulations allow //Tell the user to wait a while before creating any more posts error_page( "You cannot create any more threads right now. Please wait a while before trying again.
This delay has been enforced to protect against abuse of the system."); } $title = post_str("title", true); $content = post_str("content", true); if ($title && $content) { if ($_POST['add_signature']=="add_it") { $add_signature=true; } else { $add_signature=false; } $threadID = createThread( $forumid, $logged_in_user->id, $title, $content, $add_signature ); if (!$threadID) { error_page("Can't create thread (title may be missing)"); } $thread->id=$threadID; setThreadLastVisited($logged_in_user,$thread); header('Location: forum_thread.php?id=' . $threadID); } $category = getCategory($forum->category); 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 answers area let you get help from other users. If you have a question or problem:

This will prevent questions from being asked repeatedly. "; } echo "
\n"; start_table(); if ($category->is_helpdesk) { row1("Submit a new question/problem"); } else { row1("Create a new thread"); } $x = "Title".html_info(); 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".html_info().post_warning(); 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 = ""; if ($logged_in_user->no_signature_by_default==0) { $enable_signature="checked=\"true\""; } else { $enable_signature=""; } row2($x, $y); row2("", "Add my signature to this post"); row2("", ""); end_forum_table(); echo "
\n"; page_tail(); ?>