Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   [REQ] 2 addons (http://www.bvlist.com/showthread.php?t=10154)

Isload 13th December 2014 00:42

[REQ] 2 addons
 
1.
What do i put into takesignup.php so all users get 5gb on signup ?

2.
When admin check out a user they can add or remove gb from users.

Regards.

DND 13th December 2014 01:45

version? ohh wait, we read minds:coffee:

Isload 13th December 2014 02:53

Quote:

Originally Posted by DND (Post 45759)
version? ohh wait, we read minds:coffee:

TbDev 09 :)

Also is there any theme system for it ?

firefly007 14th December 2014 00:50

In takesignup.php find

PHP Code:

$id mysql_insert_id(); 

and under it add this

PHP Code:

mysql_query("UPDATE users SET uploaded = uploaded + '5300000' WHERE id= '" $id "'"); 


DND 14th December 2014 10:15

Quote:

Originally Posted by firefly007 (Post 45765)
In takesignup.php find

PHP Code:

$id mysql_insert_id(); 

and under it add this

PHP Code:

mysql_query("UPDATE users SET uploaded = uploaded + '5300000' WHERE id= '" $id "'"); 




it should be better to use in the syntax WHERE id = " . sqlesc($id) . " for security reasons

firefly007 14th December 2014 11:17

It would probably be quite hard to inject anything there.

DND 14th December 2014 12:03

better safe than sorry :gum:

WhyMe 20th December 2014 13:30

@TAKESIGNUP

look for

PHP Code:

// check if email is banned
      
$email htmlspecialchars($_POST['email']);
      
check_banned_emails($email); 

below add

PHP Code:

$uploaded 2147483648

add to the line uploaded, and $uploaded,

PHP Code:

$ret mysql_query("INSERT INTO users (uploaded,  ". (!$arr[0]?"class, ":"") ."added) VALUES (" implode(","array_map("sqlesc", array($uploaded



All times are GMT +2. The time now is 13:09.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.