Hello, I just tested the hack function "forced comment to download" of V2 and it does not work for V3, can you help me to make it work for v3 thank you in advance
url hack v2 >>> https://torrenttrader.uk/topic?topicid=3209
I made the modification below and it doesn't work, when we made a comment on the torrent we can't download it..
open download.php
find :
add after:
find :
add before:
url hack v2 >>> https://torrenttrader.uk/topic?topicid=3209
I made the modification below and it doesn't work, when we made a comment on the torrent we can't download it..
open download.php
find :
$fn = "$torrent_dir/$id.torrent";add after:
$com = mysqli_query("SELECT id FROM comments WHERE torrent =".intval($id)." and user ='" . $CURUSER["id"] ."'");
$verif_com = mysqli_num_rows($com);find :
$name = $row['filename'];add before:
if ($verif_com < 1 && $CURUSER["id"] != $row["owner"] && $row["owner"] != 0)
show_error_msg("Error", "You must add a comment before download.",1);