Requested [url="http://www.torrenttrader.org/index.php?showtopic=7704"]here[/url].
It is strongly suggested you apply the [url="http://www.torrenttrader.org/index.php?showtopic=7713"]anonymous uploads fix[/url] before using this. If you don't, you might get unexpected results.
In torrents-edit.php, find:
It is strongly suggested you apply the [url="http://www.torrenttrader.org/index.php?showtopic=7713"]anonymous uploads fix[/url] before using this. If you don't, you might get unexpected results.
In torrents-edit.php, find:
write_log($CURUSER['username']." has deleted torrent: ID:$torrentid - $torrentname - Reason: $delreason");
Below, add:
if ($CURUSER['id'] != $row['owner']) {
$delreason = $_POST["delreason"];
mysql_query("INSERT INTO messages (sender, receiver, added, subject, msg, unread, location) VALUES(0, ".$row['owner'].", '".get_date_time()."', 'Your torrent \'$torrentname\' has been deleted by ".$CURUSER['username']."', ".sqlesc("'$torrentname' was deleted by ".$CURUSER['username']."\n\nReason: $delreason").", 'yes', 'in')");
}