"; exit(); } $thread = getThread($post->thread); if (!isSpecialUser($logged_in_user,0)) { // Can't moderate without being moderator echo "You are not authorized to moderate this post."; exit(); } /* updatePost($post->id, $_POST['content']); if ($post->parent_post==0 and $thread->owner==$logged_in_user->id){ updateThread($thread->id, $_POST['title']); } header('Location: forum_thread.php?id='.$thread->id);*/ } page_head('Forum'); //show_forum_title($forum, $thread, $category->is_helpdesk); //start form echo "
id method=POST>\n"; start_table(); row1("Moderate post"); if (get_str('action')=="hide") { //display input that selects reason echo ""; row2("", "Select the reason category, optionally write a longer describtion of why you delete the post and then press ok to hide it."); row2("Category", ""); } elseif (get_str('action')=="move") { echo ""; row2("Destination thread ID:", ""); //todo display where to move the post as a dropdown instead of having to get ID } else { echo "Unknown action"; exit(); } row2("Reason
Mailed if nonempty", ""); row2( "", "" ); end_table(); echo "
"; page_tail(); ?>