Hello everyone, I'm looking to modify to prohibit access to the details.php of the torrent for the member class for some category id of torrents, thank you for your help :help
I put this in torrent.details.php but it doesn't work:
I put this in torrent.details.php but it doesn't work:
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// PORN VIP
if(($CURUSER["class"]<3) && ($row['category']) == 22){
show_error_msg("Error","you can't see the description of this torrent, it is for vip members.",1);
}
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// END PORN VIP
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// PORN VIP
if(($CURUSER["class"]<3) && ($row['category']) == 28){
show_error_msg("Error","you can't see the description of this torrent, it is for vip members.",1);
}
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// END PORN VIP
$res = SQL_Query_exec("SELECT filename, vip FROM torrents WHERE id = $id");
$arr = mysqli_fetch_assoc($res);
$name = $arr['filename'];
$vip = $arr['vip'];
if ($vip == "yes" && $CURUSER["class"]<3 ){
show_error_msg("Error","<font color='#ff0000'><b>::: Ce Torrent est pour les membres VIP !!! :::</b></font>",1);
}