|
#1
|
|||
|
|||
How do I add "Upload GB" on members?
How do I add "Upload GB" on members? Using TSrike Fully Modded.
|
#2
|
|||
|
|||
reply
open takesignup.php and find this
Code:
$secret = mksecret(); Code:
$uploaded = 2147483648; 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() ."')"); 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 |
#3
|
||||
|
||||
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, Last edited by naotem; 28th October 2014 at 19:01. |
Tags |
add , members , upload gb |
|
|