Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv25834
Modified Files:
auth.php
Log Message:
Some configurations of PHP had difficulties dealing with the previous method of generating session authcodes.
Index: auth.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/auth.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** auth.php 23 Nov 2003 22:47:34 -0000 1.12
--- auth.php 22 Dec 2003 22:25:14 -0000 1.13
***************
*** 117,121 ****
session_register("authcode");
mt_srand(microtime() * 1000000);
! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr($_SERVER["REMOTE_HOST"],0,40);
$aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';");
} else {
--- 117,121 ----
session_register("authcode");
mt_srand(microtime() * 1000000);
! $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr(gethostbyaddr($_SERVER["REMOTE_ADDR"]),0,40);
$aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';");
} else {
|