r723: We don't need newcomment.php anymore...
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Jan 2006 08:23:38 +0000 (08:23 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Jan 2006 08:23:38 +0000 (08:23 +0000)
newcomment.php [deleted file]

diff --git a/newcomment.php b/newcomment.php
deleted file mode 100644 (file)
index 20df7b5..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/*=====================================================================*\
-|| ################################################################### ||
-|| # Bugdar [#]version[#]
-|| # --------------------------------------------------------------- # ||
-|| # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
-|| # This file may not be reproduced in any way without permission.  # ||
-|| # --------------------------------------------------------------- # ||
-|| # User License Agreement at http://www.iris-studios.com/license/  # ||
-|| ################################################################### ||
-\*=====================================================================*/
-
-define('SVN', '$Id$');
-
-require_once('./global.php');
-
-$bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = " . intval($bugsys->in['bugid']));
-if (!$bug)
-{
-       $message->error($lang->getlex('error_invalid_id'));
-}
-
-if (!can_perform('canpostcomments', $bug['productid']))
-{
-       $message->error_permission();
-}
-
-// ###################################################################
-
-if ($_POST['do'] == 'insert')
-{
-       $bugsys->in['comment_parsed'] = $bugsys->in['comment'];
-       
-       if (!$bugsys->options['allowhtml'])
-       {
-               $bugsys->in['comment_parsed'] = $bugsys->sanitize($bugsys->in['comment_parsed']);
-       }
-       
-       $time = TIMENOW;
-       
-       $db->query("
-               INSERT INTO " . TABLE_PREFIX . "comment
-                       (bugid, userid, dateline, comment, comment_parsed)
-               VALUES
-                       (" . intval($bugsys->in['bugid']) . ", " . $bugsys->userinfo['userid'] . ",
-                       $time, '" . $bugsys->in['comment'] . "',
-                       '" . nl2br($bugsys->in['comment_parsed']) . "'
-               )"
-       );
-       
-       $commentid = $db->insert_id();
-       
-       $db->query("
-               UPDATE " . TABLE_PREFIX . "bug
-               SET lastposttime = $time,
-                       lastpostby = " . $bugsys->userinfo['userid'] . ",
-                       hiddenlastposttime = $time,
-                       hiddenlastpostby = " . $bugsys->userinfo['userid'] . "
-               WHERE bugid = " . intval($bugsys->in['bugid'])
-       );
-
-       $message->redirect($lang->string('Your reply has been added to the comment list.'), "showreport.php?bugid=" . intval($bugsys->in['bugid']));
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
-?>
\ No newline at end of file