Version 3.1.4
This commit is contained in:
1 parent
1d4720f3e2
commit
ae5c01cc78
2563 files changed
+283048
-240689
No files matched your search
@@ -1,18 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* IP.Board v3.1.4
|
||||
* Admin session handler
|
||||
* Last Updated: $Date: 2009-08-24 20:56:22 -0400 (Mon, 24 Aug 2009) $
|
||||
* Last Updated: $Date: 2010-09-16 10:57:26 -0400 (Thu, 16 Sep 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since Who knows...
|
||||
* @version $Revision: 5041 $
|
||||
* @version $Revision: 6883 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -222,6 +224,9 @@ class adminSessions extends ips_MemberRegistry
|
||||
{
|
||||
if ( $session_data['session_running_time'] < ( time() - $_time_out_mins * 60 ) )
|
||||
{
|
||||
self::$data_store = array();
|
||||
self::setMember( 0 );
|
||||
|
||||
$this->_validated = FALSE;
|
||||
return $this->_response( 0, 'session_timeout' );
|
||||
}
|
||||
@@ -237,6 +242,9 @@ class adminSessions extends ips_MemberRegistry
|
||||
|
||||
if ( $first_ip != $second_ip )
|
||||
{
|
||||
self::$data_store = array();
|
||||
self::setMember( 0 );
|
||||
|
||||
$this->_validated = FALSE;
|
||||
return $this->_response( 0, 'session_mismatchip' );
|
||||
}
|
||||
@@ -347,7 +355,7 @@ class adminSessions extends ips_MemberRegistry
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->registry->class_localization->words[ $this->_message ];
|
||||
return ( isset($this->registry->class_localization->words[ $this->_message ]) AND $this->registry->class_localization->words[ $this->_message ] ) ? $this->registry->class_localization->words[ $this->_message ] : $this->_message;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user