Hi.
If you want restrict the download of porn category only to VIP, (modo, smodo, admin) do this :
In Download.php
find :
Replace with :
and add after :
$CURUSER["class"]<XX (XX = VIP class number)
$row['category'] == YY) (YY = number of your category porn or other)

Enjoy
If you want restrict the download of porn category only to VIP, (modo, smodo, admin) do this :
In Download.php
find :
$res = mysql_query("SELECT filename, external, announce, FROM torrents WHERE id =".intval($id));
$row = mysql_fetch_array($res);
$trackerurl = $row['announce'];
$torrent_dir = $site_config["torrent_dir"];
$fn = "$torrent_dir/$id.torrent";
Replace with :
$res = mysql_query("SELECT filename, external, announce, category FROM torrents WHERE id =".intval($id));
$row = mysql_fetch_array($res);
$trackerurl = $row['announce'];
$torrent_dir = $site_config["torrent_dir"];
$fn = "$torrent_dir/$id.torrent";
and add after :
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// PORN VIP
if(($CURUSER["class"]<11) && ($row['category']) == 34){
show_error_msg("Error","Vous ne pouvez pas t?l?charger, il faut ?tre VIP",1);
}
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// END PORN VIP
$CURUSER["class"]<XX (XX = VIP class number)
$row['category'] == YY) (YY = number of your category porn or other)
Enjoy