//take comment add
if ($_GET["takecomment"] == 'yes'){
loggedinonly();
$body = $_POST['body'];
if (!$body)
autolink("torrents-details.php?id=$id", T_("YOU_DID_NOT_ENTER_ANYTHING"));
SQL_Query_exec("UPDATE torrents SET comments = comments + 1 WHERE id = $id");
SQL_Query_exec("INSERT INTO comments (user, torrent, added, text) VALUES (".$CURUSER["id"].", ".$id.", '" .get_date_time(). "', " . sqlesc($body).")");
if (mysqli_affected_rows($GLOBALS["DBconnector"]) == 1)
autolink("torrents-details.php?id=$id", T_("COMMENT_ADDED"));
else
autolink("torrents-details.php?id=$id", T_("UNABLE_TO_ADD_COMMENT"));
}//end insert comment
No users online
Torrents
Members
Online