hasPriv("admin") && !$_SESSION['current']->isMaintainer($oComment->iVersionId) && !$_SESSION['current']->isSuperMaintainer($oComment->iAppId)) { util_show_error_page_and_exit("You don't have sufficient privileges to delete this comment."); } // let's show the deletion form if the user want's to explain why he deleted the comment if($_SESSION['current']->getPref("confirm_comment_deletion") != "no" && !isset($aClean['iDeleteIt'])) { apidb_header("Delete Comment"); $sMessageTitle = "Please state why you are deleting the following comment"; echo "
"; apidb_footer(); // otherwise, just delete the comment } else { $oComment->delete($aClean['sWhy']); util_redirect_and_exit(apidb_fullurl("appview.php?iVersionId=".$oComment->iVersionId)); } ?>