$mycats = array(22, 28);
if ($CURUSER['class'] <3 && !in_array($mycats, $mycats)) {
autolink('index.php', 'Error For VIP');
} ///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// 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);
}<a href=torrents-details.php?id=$id>$fn = "$torrent_dir/$id.torrent";
$commented = get_row_count("comments", "WHERE torrent = $id AND user = $CURUSER[id]");
if ($commented == 0
&& $CURUSER["id"] != $row["owner"] && $CURUSER["class"] < 7) {
show_error_msg("Error", "::: You must add a comment before download</b>
<br /><br /><a href=torrents-details.php?id=$id>-- Click here to return to your Torrent page. --</a><br /><br />",1);
} $fn = "$torrent_dir/$id.torrent";
$commented = get_row_count("comments", "WHERE torrent = $id AND user = $CURUSER[id]");
if ($commented == 0
&& $CURUSER["id"] != $row["owner"] && $CURUSER["class"] < 7) {
show_error_msg("Error", "::: You must add a comment before download</b>
<br /><br /><a href=torrents-details.php?id=$id>-- Click here to return to your Torrent page. --</a><br /><br />",1);
} $fn = "$torrent_dir/$id.torrent";
$commented = get_row_count("comments", "WHERE torrent = $id AND user = $CURUSER[id]");
if ($commented == 0
&& $CURUSER["id"] != $row["owner"] && $CURUSER["class"] < 7) {
if ($commented == 0) { // or try if (!$commented ) {
show_error_msg("Error", "::: You must add a comment before download</b>
<br /><br /><a href=torrents-details.php?id=$id>-- Click here to return to your Torrent page. --</a><br /><br />",1);
}$res = SQL_Query_exec("SELECT filename, banned, external, announce, thanks, owner, category FROM torrents WHERE id =".intval($id));$commented = get_row_count("comments", "WHERE torrent = $id AND user = $CURUSER[id]");
if ($commented == 0) { // or try if (!$commented ) {
show_error_msg("Error", "::: You must add a comment before download</b>
<br /><br /><a href=torrents-details.php?id=$id>-- Click here to return to your Torrent page. --</a><br /><br />",1);
}$fn = "$torrent_dir/$id.torrent";$com = mysqli_query("SELECT id FROM comments WHERE torrent =".intval($id)." and user ='" . $CURUSER["id"] ."'");
$verif_com = mysqli_num_rows($com);$name = $row['filename'];if ($verif_com < 1 && $CURUSER["id"] != $row["owner"] && $row["owner"] != 0)
show_error_msg("Error", "You must add a comment before download.",1); case 'VIP':
$days = $row->value;
$vipuntil = ( $CURUSER["vipuntil"] > "0000-00-00 00:00:00" ) ? $vipuntil = get_date_time( strtotime( $CURUSER["vipuntil"] ) + ( $days*86400 ) ) : $vipuntil = get_date_time( gmtime() + ( $days*86400 ) );
$oldclass = ( $CURUSER["vipuntil"] > "0000-00-00 00:00:00" ) ? $oldclass = $CURUSER["oldclass"] : $oldclass = $CURUSER["class"];
SQL_Query_exec("UPDATE `users` SET `class` = '3', `oldclass`='$oldclass', `vipuntil` = '$vipuntil' WHERE `id` = '$CURUSER[id]'");
break;
}SQL_Query_exec("UPDATE `users` SET `class` = '3' WHERE `downloaded` = `0`;$site_config['INVITEONLY'] = false; //Only allow signups via invite
$site_config['ENABLEINVITES'] = true; // Enable invites regardless of INVITEONLY setting