Authorizer v1.0 - Login and Error Problems
Posted: Thu Jul 08, 2004 10:39 am
Hi, I found a free but older PHP Login Script. I am new to PHP and don't know how to adjust the script to work for me. I was wondering if someone could help me.
The name of the script is Authorizer v1.0 (http://www.phpscripts-fr.net/scripts/sc ... tification) It's in English.
Basically the problem I'm having is when you initially install the script and try to login with the default login and password, you get this error:
- - - -
Warning: setcookie() expects parameter 3 to be long, string given in /home/richar4/public_html/rl/zuk/auth_login.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at /home/richar4/public_html/rl/zuk/auth_login.php:5) in /home/richar4/public_html/rl/zuk/auth_login.php on line 7
- - - -
I figured out that if you modify the auth_login.php file from:
$exp = gmdate ("M d Y H:i:s", time()-5000);
setcookie("AUTHORIZER",$username.":".md5($username.$userpass),$exp." GMT");
To this:
setcookie("AUTHORIZER",$username.":".md5($username.$userpass)." GMT");
There is no longer an error. However, nothing happens. When you enter the default login and password again, the page just refreshes.
Would someone please be so kind as to help me get this script running. I would greatly appreciate it.
Thank you!!!!
45thronin
The name of the script is Authorizer v1.0 (http://www.phpscripts-fr.net/scripts/sc ... tification) It's in English.
Basically the problem I'm having is when you initially install the script and try to login with the default login and password, you get this error:
- - - -
Warning: setcookie() expects parameter 3 to be long, string given in /home/richar4/public_html/rl/zuk/auth_login.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at /home/richar4/public_html/rl/zuk/auth_login.php:5) in /home/richar4/public_html/rl/zuk/auth_login.php on line 7
- - - -
I figured out that if you modify the auth_login.php file from:
$exp = gmdate ("M d Y H:i:s", time()-5000);
setcookie("AUTHORIZER",$username.":".md5($username.$userpass),$exp." GMT");
To this:
setcookie("AUTHORIZER",$username.":".md5($username.$userpass)." GMT");
There is no longer an error. However, nothing happens. When you enter the default login and password again, the page just refreshes.
Would someone please be so kind as to help me get this script running. I would greatly appreciate it.
Thank you!!!!
45thronin