[phplib-commit] CVS: php-lib-stable/php auth4.inc,1.1,1.2
Brought to you by:
nhruby,
richardarcher
From: Florian C. <ch...@us...> - 2006-07-29 10:49:19
|
Update of /cvsroot/phplib/php-lib-stable/php In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1365 Modified Files: auth4.inc Log Message: Correction of function start(): when you used default auth (nobody=true) and then tried to access a protected page, the loginform displayed (normal) but if you did not log in, you couldn't access unprotected pages anymore because loginform was always displayed (abnormal). Index: auth4.inc =================================================================== RCS file: /cvsroot/phplib/php-lib-stable/php/auth4.inc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** auth4.inc 4 Oct 2002 14:13:27 -0000 1.1 --- auth4.inc 29 Jul 2006 10:45:56 -0000 1.2 *************** *** 182,192 **** $this->auth["refresh"] = time() + (60 * $this->refresh); return true; ! } else { ! $this->auth_loginform(); ! $this->auth["uid"] = "form"; ! $this->auth["exp"] = 0x7fffffff; ! $this->auth["refresh"] = 0x7fffffff; ! $sess->freeze(); ! exit; } break; --- 182,203 ---- $this->auth["refresh"] = time() + (60 * $this->refresh); return true; ! } ! else { ! if ($this->nobody){ ! $this-> unauth(); ! # Authenticate as nobody ! $this-> auth["uid"] = "nobody"; ! $this-> auth["exp"] = 0x7fffffff; ! $this-> auth["refresh"] = 0x7fffffff; ! return true; ! } ! else { ! $this->auth_loginform(); ! $this->auth["uid"] = "form"; ! $this->auth["exp"] = 0x7fffffff; ! $this->auth["refresh"] = 0x7fffffff; ! $sess->freeze(); ! exit; ! } } break; |