Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > Torrent Strike
Reply
  #1  
Old 29-06-11, 18:06
Filmub's Avatar
Filmub Filmub is offline
Member
 
Join Date: May 2011
Sweden
Posts: 10
Default How do I add "Upload GB" on members?
How do I add "Upload GB" on members? Using TSrike Fully Modded.
Reply With Quote
  #2  
Old 29-06-11, 19:05
denno's Avatar
denno denno is offline
Senior Member
 
Join Date: Feb 2009
United Kingdom
Posts: 18
Default reply
open takesignup.php and find this
Code:
$secret = mksecret();
and add this above
Code:
$uploaded = 2147483648;
still in takesignup.php find this
Code:
$ret  = mysql_query("INSERT INTO users (username, passhash, secret,  editsecret, email,country, status, ". (!$arr[0]?"class, ":"") ."added)  VALUES (" .
                implode(",", array_map("sqlesc",  array($wantusername, $wantpasshash, $secret, $editsecret, $email,  $country, (!$arr[0] || !ENA_EMAIL_CONFIRM?'confirmed':'pending')))).
                ", ". (!$arr[0]?UC_SYSOP.", ":""). "'". get_date_time() ."')");
and replace it with this
Code:
$ret  = mysql_query("INSERT INTO users (uploaded, username, passhash, secret,  editsecret, email,country, status, ". (!$arr[0]?"class, ":"") ."added)  VALUES (" .
                implode(",", array_map("sqlesc",  array($uploaded, $wantusername, $wantpasshash, $secret, $editsecret,  $email, $country, (!$arr[0] ||  !ENA_EMAIL_CONFIRM?'confirmed':'pending')))).
                ", ". (!$arr[0]?UC_SYSOP.", ":""). "'". get_date_time() ."')");

the code above is set to give 2gb for signing up, but can change it to whatever you want, I added upto 10gb for you


1 - 1073741824
2 - 2147483648
3 - 3221225372
4 - 4294967096
5 - 5368708920
6 - 6442450744
7 - 7516192468
8 - 8589934192
9 - 9663676016
10 - 10737417840
Reply With Quote
  #3  
Old 28-10-14, 17:55
naotem's Avatar
naotem naotem is offline
Member
 
Join Date: Feb 2009
Brazil
Posts: 11
Default Upload for all
Ok, this is for new members. But how do I add upload to the old members? It would be unfair to new members only receive this credit.


The solution is easy
In database
Code:
update users set uploaded = uploaded + 10737417840,
For add 10GB uploaded

Last edited by naotem; 28-10-14 at 19:01.
Reply With Quote
Reply

Tags
add , members , upload gb

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 23:08. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.