From cd54d6d02b9807c1d0cdb78df02a9bb30d5a4588 Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Sat, 12 Mar 2005 01:10:29 +0000 Subject: [PATCH] Remove deletecomment.php --- deletecomment.php | 72 ----------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 deletecomment.php diff --git a/deletecomment.php b/deletecomment.php deleted file mode 100644 index ff6d66c..0000000 --- a/deletecomment.php +++ /dev/null @@ -1,72 +0,0 @@ -isLoggedIn()) -{ - errorpage("You need to be logged in to delete a comment."); - exit; -} - -/* if we aren't an admin or the maintainer of this app we shouldn't be */ -/* allowed to delete any comments */ -if(!$_SESSION['current']->hasPriv("admin") && - !$_SESSION['current']->isMaintainer($_REQUEST['appId'], $_REQUEST['versionId'])) -{ - errorpage('You don\'t have sufficient privileges to delete this comment.'); - exit; -} - -$oComment = new Comment($_REQUEST['commentId']); - - -if($_SESSION['current']->getPref("confirm_comment_deletion") != "no" && !isset($_REQUEST['int_delete_it'])) -{ - apidb_header("Delete Comment"); - $mesTitle = "Please state why you are deleting the following comment"; - echo "
\n"; - echo html_frame_start($mesTitle,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 "\n"; - echo "\n"; - echo "\n"; - echo ""; - echo "
"; - ?> - -

 

- - delete($_REQUEST['str_why']); - redirect(apidb_fullurl("appview.php?versionId=".$_REQUEST['versionId'])); -} -?>