getThread(); $forum = $thread->getForum(); $user = re_get_logged_in_user(true); check_banished($user); /* Make sure the user has the forum's minimum amount of RAC and total credit * before allowing them to report a post. Using the same rules as for rating (at least for now) */ if ($user->getTotalCredit()<$forum->getRateMinTotalCredit() || $user->getExpavgCredit()<$forum->getRateMinExpavgCredit()) { error_page("You need more average or total credit to report a post."); } if ($post->hasReported($user)) { error_page("You have already reported this post once."); } //__-------------- Action part $success_page=0; if (get_str("submit",true)){ $reason = get_str("reason"); if (send_report_post_email($user, $thread, $post, $reason)){ $success_page=1; } else { $success_page=-1; } } //__--------------- Display part if ($success_page==1) { $post_thread = $post->getThread(); page_head('Report Registered'); echo "
Your report has been successfully recorded. Thank you for your input.
A moderator will now look at your report and decide what will happen - this may take a little while, so please be patient
"; echo "getID(), "#", $post->getID(), "\">Return to thread"; } elseif($success_page==0){ page_head('Report a forum post'); echo "Before reporting this post please consider using the +/- rating system instead. If enough users agree on rating a post negatively it will
eventually be hidden.
You can find the rating system at the bottom of the post.
Your report could not be recorded. Please wait a short while and try again.
If this is not a temporary error, please report it to the project developers.
"; echo "getThread(), "#", $post->getID(), "\">Return to thread"; } page_tail(); ?>