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 "
\n"; page_tail(); ?>