require_once('./global.php');
require_once('./includes/functions_product.php');
require_once('./includes/api_bug.php');
+require_once('./includes/api_comment.php');
if (!can_perform('cansubmitbugs', intval($bugsys->in['productid'])))
{
$comment->set('comment', $_POST['comment']);
$comment->insert();
- // insert the comment to the database
- $db->query("
- INSERT INTO " . TABLE_PREFIX . "comment
- (bugid, userid, dateline, comment, comment_parsed)
- VALUES
- ($bugid, " . $bugsys->userinfo['userid'] . ",
- $time, '" . $bugsys->in['comment'] . "',
- '" . nl2br($bugsys->in['comment_parsed']) . "'
- )"
- );
-
$time = $comment->values['dateline'];
$db->query("