[phplib-commit] CVS: php-lib-stable/pages defauth.php3,1.3,1.4
Brought to you by:
nhruby,
richardarcher
From: Layne W. <lay...@us...> - 2007-01-12 21:47:32
|
Update of /cvsroot/phplib/php-lib-stable/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4474/pages Modified Files: defauth.php3 Log Message: prefer auto-globals (i.e. $_GET instead of $HTTP_GET_VARS) allow for "register_long_arrays" INI setting in PHP5 to be turned off as this disables the longer arrays Index: defauth.php3 =================================================================== RCS file: /cvsroot/phplib/php-lib-stable/pages/defauth.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** defauth.php3 19 Mar 2002 22:32:25 -0000 1.3 --- defauth.php3 12 Jan 2007 21:47:27 -0000 1.4 *************** *** 25,31 **** // after the user submits a username and password, we will unauth // them before they even get logged in! ! $HTTP_SERVER_VARS["QUERY_STRING"] = ereg_replace( "(^|&)again=yes(&|$)", ! "\\1", $HTTP_SERVER_VARS["QUERY_STRING"]); $auth->login_if($again); // relogin, if this was requested... --- 25,34 ---- // after the user submits a username and password, we will unauth // them before they even get logged in! ! if (!isset($_SERVER)) { ! $_SERVER = $HTTP_SERVER_VARS; ! } ! $_SERVER["QUERY_STRING"] = ereg_replace( "(^|&)again=yes(&|$)", ! "\\1", $_SERVER["QUERY_STRING"]); $auth->login_if($again); // relogin, if this was requested... |