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 "
\n"; echo html_frame_start($sMessageTitle,500,"",0); echo "
"; echo html_frame_start($oComment->sSubject,500); echo htmlify_urls($oComment->sBody), "

\n"; echo html_frame_end(); echo '',"\n"; echo "\n"; echo "\n"; echo "
\n"; echo " \n"; echo "
\n"; echo html_frame_end(); echo "\n"; echo "iCommentId."\" />"; echo "
"; apidb_footer(); // otherwise, just delete the comment } else { $oComment->delete(true); $oVersion = new version($oComment->iVersionId); util_redirect_and_exit($oVersion->objectMakeUrl()); } ?>