From f377690a63d33eb83a2217eff27d45ba4f476e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sat, 29 Sep 2007 01:37:44 +0200 Subject: [PATCH] Remove unused deletecomment.php --- deletecomment.php | 61 ----------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 deletecomment.php diff --git a/deletecomment.php b/deletecomment.php deleted file mode 100644 index 468cf4d..0000000 --- a/deletecomment.php +++ /dev/null @@ -1,61 +0,0 @@ -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()); -} -?>