my own user registeration and login library! |
[eluser]A.M.F[/eluser]
hi people, i finished to work on my members application, and i want u to see it and see if i can improve it some how, and offcourse u can use it if u need to. this is how i built it: i have a Forms.php controller, that containes the login() and the register() pages, as well as a securityimg() function (to validate the forms) and emailcheck() and usercheck() functions to see that the user name and email are not allready in the DB. Forms.php Code: class Forms extends Controller (ran out of characters)
[eluser]A.M.F[/eluser]
here is the rest of Forms.php Code: // now, i have a model called user_m.php that for now containes two functions: register() - putting the user data inside the DB, and check_match() - used in the emailcheck() and usercheck() functions that in my Forms.php controller. user_m.php Code: class User_m extends Model
[eluser]A.M.F[/eluser]
the third part of my application is the user_lib.php library. in there i have the login checking and the auth() function that checks if the user has authoration and to see if he is looged with cookies or sessions. user_lib.php Code: class User_lib and that is it. what do u think? thank u for ur time!
[eluser]Neocode[/eluser]
hi I'm new in CI... i have copy and tried your code... can ask for the securityimg_lib file. thanks by the way.. when i load the page it doesn't redirect... the page will display the page isn't redirecting properly..Firefox has detected that the server is redirecting the request for this address in a way that will never complete.... please post it as soon as possible thanks if you could include the databse please include it.. the dump .sql file or so whatever.. if u can zip ur file you can send it to haro.glory@yahoo.com. please, i will use your code for study purposes. thanks
[eluser]awpti[/eluser]
Seriously, Neo. Stop begging. Dogs beg. People don't. (Or..shouldn't) |
Welcome Guest, Not a member yet? Register Sign In |