Dangmnx Posted April 3, 2009 Share Posted April 3, 2009 hi guys okay so last night i stayed up working on an uploading system. http://www.dangmn.net/tgl/report.php now can anyone tell me where / how i can get a script where i make members register before being able to upload? ex: if you want to upload, you must register. thanks! Quote Link to comment Share on other sites More sharing options...
Yesideez Posted April 7, 2009 Share Posted April 7, 2009 Why not write one yourself? Make a table (called "users") to hold information like name, email, password hash, level (eg. 0=not activated, 1=user, 2=moderator, 3=admin), banned (enum['yes','no']) and any other information you need to store. Have the userid being the primary key. Upon registration (register.php) check if the email is already used and not allow it again. Might want to do the same for the username. When they register email them a link to activate the account. This can be in a separate table (called "activations") where you store their userid and the activation key). Another script gets called when they click the link in their email (activate.php) checks the activation key & userid in the URL against the activations table and a match updates the level to 1 - user. If either didn't match they get told something didn't match and leave level as 0. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.