Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[HACK] Porn Download forbiden before VIP
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-06-04 08:36:35
Hi.

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
Unknown User
2012-02-27 18:14:37
English

hello

I successfully activate this feature of my sudden my function "force thanks" does not work anymore, whys? 2 is what function does it's not compatible between? whether or not, what to do please?

Thank you in advance for your help

French

bonjour

J'ai activer avec succès cette fonction mes du coup ma fonction "force thanks" ne marche plus, pourquois ? est ce que les 2 fonction ne son pas compatible entre elle ? si oui ou non, que faire s'il vous plait ?

Merci d'avance pour votre aide
Unknown User
2012-02-27 18:28:22
[size=14px]do not replace [/size][size=14px]the full code [/size][size=14px]but [/size][size=14px]adapt [/size][size=14px]it to suit [/size][size=14px]your code[/size]
Unknown User
2012-02-27 19:50:10
ok how do I because I am ... how to say one may lose
Unknown User
2012-02-28 11:41:52
dont work in 2.08

EDIT: i forgot change id category.... its ok now but i havent the

$trackerurl = $row['announce'];

$res = SQL_Query_exec("SELECT filename, external, announce, category FROM torrents WHERE id =".intval($id));



$row = mysql_fetch_array($res);



$torrent_dir = $site_config["torrent_dir"];



$fn = "$torrent_dir/$id.torrent";



///////////////////////////////////////////////////////////////////////////////////////////////

////////////////  VIP

if(($CURUSER["class"]<3) && ($row['category']) == 92){

show_error_msg("Sorry","You can not download, you have to be VIP",1);

}

///////////////////////////////////////////////////////////////////////////////////////////////

////////////////   END VIP
Unknown User
2012-02-28 12:08:25
I'm not on the 2.5 and plan on staying because this version and for me the most stable, so that you need to do to know that two functions can walk all the two?
Unknown User
2012-03-15 09:16:09
"DJTADISCO, post: 80887":
English

hello

I successfully activate this feature of my sudden my function "force thanks" does not work anymore, whys? 2 is what function does it's not compatible between? whether or not, what to do please?

Thank you in advance for your help

French

bonjour

J'ai activer avec succès cette fonction mes du coup ma fonction "force thanks" ne marche plus, pourquois ? est ce que les 2 fonction ne son pas compatible entre elle ? si oui ou non, que faire s'il vous plait ?

Merci d'avance pour votre aide




Hello

Did you find a solution to put this code and run the two together hack.
Unknown User
2012-03-15 19:06:17
pretty simple, you replaced the query statement in download.php instead of just adding

, category before  FROM torrents
Unknown User
2012-03-17 10:44:40
hello,

you can develop the code snippet shown

thank you

hack.

$res = mysql_query("SELECT filename, name, comadd, banned, external, announce, category FROM torrents WHERE id =".intval($id));

$res = mysql_query("SELECT filename, name, comadd, banned, external, announce, owner FROM torrents WHERE id =".intval($id));
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728