PHP Login Code
#156041
01/13/2003 2:40 PM
01/13/2003 2:40 PM
|
Joined: Nov 2001
Posts: 745 Des Moines, IA
Ron M
OP
Admin Emeritus
|
OP
Admin Emeritus
Joined: Nov 2001
Posts: 745
Des Moines, IA
|
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 
|
|
|
Re: PHP Login Code
#156042
01/13/2003 4:06 PM
01/13/2003 4:06 PM
|
Joined: Oct 2000
Posts: 2,668 London, UK
Charles
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,668
London, UK
|
nice work thanks
Do you believe in love at first sight, or should I walk by again?
|
|
|
Re: PHP Login Code
#156051
04/14/2003 3:05 PM
04/14/2003 3:05 PM
|
Joined: Apr 2001
Posts: 237 Ottawa, ON, Canada
Mike Bobbitt
Member
|
Member
Joined: Apr 2001
Posts: 237
Ottawa, ON, Canada
|
Quick update... Here's a version of the script that's cleaned up a bit, and will check to see if the user's logged in via a cookie. If so, they'll get "Welcome [Username]" otherwise they'll get a login screen. http://cdnarmy.ca/deleteme/phplogin.txt It's meant to be included as part of a larger page (I.E. in a content island), rather than be a page all on it's own.
|
|
|
Re: PHP Login Code
#156055
05/25/2003 11:16 AM
05/25/2003 11:16 AM
|
Joined: Sep 2001
Posts: 93 Germany
Stamoulis
Member
|
Member
Joined: Sep 2001
Posts: 93
Germany
|
hmm i am bit confused in this, for me it isnt working, ver. 1 cand find any login information and ver.2 does nothing just takes me to the mainpage with any login .http://www.greek-forum.de/login.php .http://www.greek-forum.de/login2.php any help !? :rolleyes:
|
|
|
Re: PHP Login Code
#156057
05/29/2003 10:21 PM
05/29/2003 10:21 PM
|
Joined: Nov 2001
Posts: 745 Des Moines, IA
Ron M
OP
Admin Emeritus
|
OP
Admin Emeritus
Joined: Nov 2001
Posts: 745
Des Moines, IA
|
Bug found: Change: I'll update the zips tomorrow with the fix.
|
|
|
Re: PHP Login Code
#156058
07/10/2003 4:35 AM
07/10/2003 4:35 AM
|
Joined: May 2003
Posts: 40
jlm
Member
|
Member
Joined: May 2003
Posts: 40
|
well obviously my server or something is setup wrong Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/httpdocs/login.php on line 35 Warning: file("/usr/local/psa/home/vhosts/cgi-bin/Members/memberslist.cgi") - Operation not permitted in /usr/local/psa/home/vhosts/httpdocs/login.php on line 35 Warning: fopen("/usr/local/psa/home/vhosts/httpdocs//access_log.txt", "a") - Permission denied in /usr/local/psa/home/vhosts/httpdocs/login.php on line 7 Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/httpdocs/login.php:35) in /usr/local/psa/home/vhosts/httpdocs/login.php on line 21 Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/httpdocs/login.php:35) in /usr/local/psa/home/vhosts/httpdocs/login.php on line 21 Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/httpdocs/login.php:35) in /usr/local/psa/home/vhosts/httpdocs/login.php on line 21 Warning: fopen("/usr/local/psa/home/vhosts/httpdocs//access_log.txt", "a") - Permission denied in /usr/local/psa/home/vhosts/httpdocs/login.php on line 7
|
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Forums64
Topics37,474
Posts293,545
Members13,807
|
Most Online1,498 Mar 17th, 2017
|
|
Currently Online 890
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 19
|
|
|