isSpecialUser(S_MODERATOR) && ($logged_in_user->getTotalCredit()<$forum->getPostMinTotalCredit() || $logged_in_user->getExpavgCredit()<$forum->getPostMinExpavgCredit())) { //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(sprintf(tr(FORUM_ERR_EXPAVG),$forum->getTitle())); } if (time()-$logged_in_user->getLastPostTimestamp()<$forum->getPostMinInterval()){ //If the user is posting faster than forum regulations allow //Tell the user to wait a while before creating any more posts error_page(tr(FORUM_ERR_INTERVAL)); } $title = post_str("title", true); $content = post_str("content", true); if ($content && $title){ if (post_str('add_signature',true)=="add_it"){ $add_signature=true; // set a flag and concatenate later } else { $add_signature=false; } $thread = $forum->createThread($title, $content, $logged_in_user, $add_signature); header('Location: forum_thread.php?id=' . $thread->getID()); } page_head('Forum'); show_forum_title($forum, NULL, $category->is_helpdesk); echo "
getID()."\" method=POST>\n"; start_table(); row1(tr(FORUM_SUBMIT_NEW)); //New thread $submit_help = ""; $body_help = ""; //Title if ($content && !$title) $submit_help = "
Remember to add a title"; row2(tr(FORUM_SUBMIT_NEW_TITLE).$submit_help, ""); //Message row2(tr(FORUM_MESSAGE).html_info().post_warning().$body_help, ""); if ($logged_in_user->hasSignatureByDefault()) { $enable_signature="checked=\"true\""; } else { $enable_signature=""; } row2("", "".tr(FORUM_ADD_MY_SIG)); row2("", ""); end_forum_table(); echo "
\n"; page_tail(); ?>