hasPriv("admin") && !$_SESSION['current']->isMaintainer($oComment->iVersionId) && !$_SESSION['current']->isSuperMaintainer($oComment->iAppId)) { errorpage('You don\'t have sufficient privileges to delete this comment.'); exit; } if($_SESSION['current']->getPref("confirm_comment_deletion") != "no" && !isset($aClean['int_delete_it'])) { apidb_header("Delete Comment"); $mesTitle = "Please state why you are deleting the following comment"; echo "
"; apidb_footer(); } else { $oComment->delete($aClean['str_why']); redirect(apidb_fullurl("appview.php?versionId=".$oComment->iVersionId)); } ?>