little update:( insert the comment in the post received by the uploader )
petite mise a jour: ( inserer le commentaire dans le message recu par l'uploadeur )
replace:
remplacer:
Quote://PM NOTIF
$res = SQL_Query_exec("SELECT name, owner FROM torrents WHERE id = $id");
$arr = mysql_fetch_array($res);
if($CURUSER['id'] != $arr["owner"]) {
$msg = "You have received a comment on your torrent [url=".%20%24site_config%5BsITEURL"]
."/torrents-details.php?id=$id]" . $arr[name] . "[/url]";
SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, msg, added,subject) VALUES('0','0', " . $arr['owner'] . ", " .
sqlesc($msg) . ", '" . get_date_time() . "','New comment!')");
}
//PM NOTIF
by:
par:
Quote://PM NOTIF
$res = SQL_Query_exec("SELECT name, owner FROM torrents WHERE id = $id");
$arr = mysql_fetch_array($res);
if($CURUSER['id'] != $arr["owner"]) {
$msg = "You have received a comment on your torrent [url=".%20%24site_config%5BsITEURL"]
."/torrents-details.php?id=$id]" . $arr[name] . "[/url] the message is
$body";
SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, msg, added,subject) VALUES('0','0', " . $arr['owner'] . ", " .
sqlesc($msg) . ", '" . get_date_time() . "','New comment!')");
}
//PM NOTIF
:)