PHP Login Code - 01/13/2003 10:40 PM
I know this question has came up a few times frequently, and I'm sharing some of my work that I have done with this.
This was originally posted by Paulus Magnus ( here , and I have ported this to work with 6.4.0 (including the md5 hashing of the cookie password)
You will need to do the following to get it to work with your site:
- Update common.php with the correct paths and email address
- Lines 79 and 85 in login.php is where you set your cookie number
This code doesn't have to be executed in this format (can be called such as index.php?act=login).
How I implemented this was by breaking the code into pieces, and calling certain pieces when necessary, by checking my query string for certain values.
I do have the running live on my site. I utilize the UBB's logoff and registration routines rather than recreating those with PHP.
Clicky Here for the files!
Have fun
This was originally posted by Paulus Magnus ( here , and I have ported this to work with 6.4.0 (including the md5 hashing of the cookie password)
You will need to do the following to get it to work with your site:
- Update common.php with the correct paths and email address
- Lines 79 and 85 in login.php is where you set your cookie number
This code doesn't have to be executed in this format (can be called such as index.php?act=login).
How I implemented this was by breaking the code into pieces, and calling certain pieces when necessary, by checking my query string for certain values.
I do have the running live on my site. I utilize the UBB's logoff and registration routines rather than recreating those with PHP.
Clicky Here for the files!
Have fun