[Openfirst-cvscommit] members auth.php,1.10,1.11
Brought to you by:
xtimg
From: <xt...@us...> - 2003-06-01 17:33:39
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv10090 Modified Files: auth.php Log Message: Remove session handling (moved to globals.php). If you are having problems, upgrade config module. Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/members/auth.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** auth.php 1 Jun 2003 16:44:08 -0000 1.10 --- auth.php 1 Jun 2003 17:33:35 -0000 1.11 *************** *** 70,76 **** // note of this so that components requiring them to log in are disabled. - - session_start(); - if(isset($_SESSION['authcode'])) { $authcode = $_SESSION['authcode']; --- 70,73 ---- *************** *** 89,93 **** $_SESSION["authcode"] = rand(1,50000000); $aquery = mysql_query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); - session_write_close(); } else { unset($user); --- 86,89 ---- *************** *** 106,110 **** $_SESSION["authcode"] = rand(1,50000000); $aquery = mysql_query("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); - session_write_close(); } else { unset($user); --- 102,105 ---- |