// Load up the comment as a board post require_once BOARDS_PKG_PATH . 'BitBoardPost.php'; $comment = new BitBoardPost($_REQUEST['comment_id']); $comment->loadComment(); if (!$comment->isValid()) { $gBitSystem->fatalError("Invalid Comment Id"); } // Take action switch ($_REQUEST['action']) { case 1: // Aprove $comment->modApprove(); break; case 2: // Reject $comment->modReject(); break; default: break; } } else { // we're just here to view (in most cases) so make sure we can $gContent->verifyViewPermission(); } /* One more thing before we get into displaying * A mass remove topics request might be made, handle it, perms are checked in the include, it does not require board edit perms necessarily. * Code is moved to edit_topic_inc to try to make this all a little more sane. * * @TODO perhaps move this into the action process above */ require_once BOARDS_PKG_PATH . 'edit_topic_inc.php';