if (!$comment->exists()) { continue; } switch ($value) { case "inbox": $comment->setStatus(PHORUM_STATUS_HOLD); break; case "hide": $comment->setStatus(PHORUM_STATUS_HIDDEN); break; case "delete": // Not allowed to delete first post. if ($comment->getMessageId() != $comment->getThreadId()) { $comment->delete(); ArticleComment::Unlink(null, null, $messageId); } break; case "approve": $comment->setStatus(PHORUM_STATUS_APPROVED); break; } $subjectStr = Input::Get('f_subject_'.$messageId, 'string', '', true); $comment->setSubject($subjectStr); $commentStr = Input::Get('f_comment_'.$messageId, 'string', '', true); $comment->setBody($commentStr); } } camp_html_goto_page("/$ADMIN/comments/index.php"); ?>