Changeset 592
- Timestamp:
- 09/28/07 11:31:45 (1 year ago)
- Files:
-
- branches/1.0beta3.x/lib/jelix/plugins/coord/auth/auth.coord.php (modified) (3 diffs)
- branches/1.0beta3.x/lib/jelix/plugins/coord/auth/auth.coord.php (modified) (3 diffs)
- trunk/lib/jelix/plugins/coord/auth/auth.coord.php (modified) (3 diffs)
- trunk/lib/jelix/plugins/coord/auth/auth.coord.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0beta3.x/lib/jelix/plugins/coord/auth/auth.coord.php
r587 r592 5 5 * @author Croes Gérald 6 6 * @contributor Laurent Jouanneau, Frédéric Guillot, Antoine Detante 7 * @copyright 2001-2005 CopixTeam, 2005-200 6Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante7 * @copyright 2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante 8 8 * 9 9 * This class was get originally from an experimental branch of the Copix project … … 70 70 } 71 71 } 72 72 73 73 //Creating the user's object if needed 74 74 if (! isset ($_SESSION[$this->config['session_name']])){ … … 80 80 if(!$notLogged && $this->config['timeout']){ 81 81 if(isset($_SESSION['JELIX_AUTH_LASTTIME'])){ 82 if(( mktime() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){82 if((time() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){ 83 83 $notLogged = true; 84 84 jAuth::logout(); 85 85 unset($_SESSION['JELIX_AUTH_LASTTIME']); 86 86 }else{ 87 $_SESSION['JELIX_AUTH_LASTTIME'] = mktime();87 $_SESSION['JELIX_AUTH_LASTTIME'] = time(); 88 88 } 89 89 }else{ 90 $_SESSION['JELIX_AUTH_LASTTIME'] = mktime();90 $_SESSION['JELIX_AUTH_LASTTIME'] = time(); 91 91 } 92 92 } branches/1.0beta3.x/lib/jelix/plugins/coord/auth/auth.coord.php
r587 r592 5 5 * @author Croes Gérald 6 6 * @contributor Laurent Jouanneau, Frédéric Guillot, Antoine Detante 7 * @copyright 2001-2005 CopixTeam, 2005-200 6Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante7 * @copyright 2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante 8 8 * 9 9 * This class was get originally from an experimental branch of the Copix project … … 70 70 } 71 71 } 72 72 73 73 //Creating the user's object if needed 74 74 if (! isset ($_SESSION[$this->config['session_name']])){ … … 80 80 if(!$notLogged && $this->config['timeout']){ 81 81 if(isset($_SESSION['JELIX_AUTH_LASTTIME'])){ 82 if(( mktime() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){82 if((time() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){ 83 83 $notLogged = true; 84 84 jAuth::logout(); 85 85 unset($_SESSION['JELIX_AUTH_LASTTIME']); 86 86 }else{ 87 $_SESSION['JELIX_AUTH_LASTTIME'] = mktime();87 $_SESSION['JELIX_AUTH_LASTTIME'] = time(); 88 88 } 89 89 }else{ 90 $_SESSION['JELIX_AUTH_LASTTIME'] = mktime();90 $_SESSION['JELIX_AUTH_LASTTIME'] = time(); 91 91 } 92 92 } trunk/lib/jelix/plugins/coord/auth/auth.coord.php
r582 r592 5 5 * @author Croes Gérald 6 6 * @contributor Laurent Jouanneau, Frédéric Guillot, Antoine Detante 7 * @copyright 2001-2005 CopixTeam, 2005-200 6Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante7 * @copyright 2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante 8 8 * 9 9 * This class was get originally from an experimental branch of the Copix project … … 70 70 } 71 71 } 72 72 73 73 //Creating the user's object if needed 74 74 if (! isset ($_SESSION[$this->config['session_name']])){ … … 80 80 if(!$notLogged && $this->config['timeout']){ 81 81 if(isset($_SESSION['JELIX_AUTH_LASTTIME'])){ 82 if(( mktime() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){82 if((time() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){ 83 83 $notLogged = true; 84 84 jAuth::logout(); 85 85 unset($_SESSION['JELIX_AUTH_LASTTIME']); 86 86 }else{ 87 $_SESSION['JELIX_AUTH_LASTTIME'] = mktime();87 $_SESSION['JELIX_AUTH_LASTTIME'] = time(); 88 88 } 89 89 }else{ 90 $_SESSION['JELIX_AUTH_LASTTIME'] = mktime();90 $_SESSION['JELIX_AUTH_LASTTIME'] = time(); 91 91 } 92 92 } trunk/lib/jelix/plugins/coord/auth/auth.coord.php
r582 r592 5 5 * @author Croes Gérald 6 6 * @contributor Laurent Jouanneau, Frédéric Guillot, Antoine Detante 7 * @copyright 2001-2005 CopixTeam, 2005-200 6Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante7 * @copyright 2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau, 2007 Frédéric Guillot, 2007 Antoine Detante 8 8 * 9 9 * This class was get originally from an experimental branch of the Copix project … … 70 70 } 71 71 } 72 72 73 73 //Creating the user's object if needed 74 74 if (! isset ($_SESSION[$this->config['session_name']])){ … … 80 80 if(!$notLogged && $this->config['timeout']){ 81 81 if(isset($_SESSION['JELIX_AUTH_LASTTIME'])){ 82 if(( mktime() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){82 if((time() - $_SESSION['JELIX_AUTH_LASTTIME'] )> ($this->config['timeout'] *60)){ 83 83 $notLogged = true; 84 84 jAuth::logout(); 85 85 unset($_SESSION['JELIX_AUTH_LASTTIME']); 86 86 }else{ 87 $_SESSION['JELIX_AUTH_LASTTIME'] = mktime();87 $_SESSION['JELIX_AUTH_LASTTIME'] = time(); 88 88 } 89 89 }else{ 90 $_SESSION['JELIX_AUTH_LASTTIME'] = mktime();90 $_SESSION['JELIX_AUTH_LASTTIME'] = time(); 91 91 } 92 92 }
