Version 3.2.3

This commit is contained in:
Neo committed 2025-12-19 00:34:03 -08:00
1 parent ae5c01cc78
commit 78706903a2
2641 files changed
+228363 -201264

No files matched your search

@@ -3,18 +3,18 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.1.4
* IP.Board v3.2.3
* Admin session handler
* Last Updated: $Date: 2010-09-16 10:57:26 -0400 (Thu, 16 Sep 2010) $
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: terabyte $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/community/board/license.html
* @license This is NULLED!
* @package IP.Board
* @link http://www.invisionpower.com
* @link http://hatynka.in
* @since Who knows...
* @version $Revision: 6883 $
* @version $Revision: 8644 $
*
*/
@@ -29,7 +29,7 @@ class adminSessions extends ips_MemberRegistry
/**
* Variable for session validated
*
* @access private
* @access protected
* @var array
*/
protected $session_data = array();
@@ -37,40 +37,40 @@ class adminSessions extends ips_MemberRegistry
/**
* Timeout variable
*
* @access private
* @access protected
* @var int
*/
private $_time_out_mins = 120;
protected $_time_out_mins = 120;
/**
* Admin session
*
* @access private
* @access protected
* @var string
*/
private $_adsess = '';
protected $_adsess = '';
/**
* Whether they are validated or not
*
* @access private
* @access protected
* @var bool
*/
private $_validated = false;
protected $_validated = false;
/**
* Message to display
*
* @access private
* @access protected
* @var string
*/
private $_message = '';
protected $_message = '';
/**
* Authorize
*
* @access public
* @return void
* @return @e void
*/
public function __construct()
{
@@ -266,7 +266,7 @@ class adminSessions extends ips_MemberRegistry
{
foreach( $groups_id as $pid )
{
if ( ! isset($cache[ $pid ]['g_id']) OR ! $cache[ $pid ]['g_id'] )
if ( empty($cache[ $pid ]['g_id']) )
{
continue;
}
@@ -355,7 +355,7 @@ class adminSessions extends ips_MemberRegistry
*/
public function getMessage()
{
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;
return !empty($this->registry->class_localization->words[ $this->_message ]) ? $this->registry->class_localization->words[ $this->_message ] : $this->_message;
}
/**
@@ -382,8 +382,8 @@ class adminSessions extends ips_MemberRegistry
if ( ! $this->registry->isClassLoaded( 'userAgentFunctions' ) )
{
require_once( IPS_ROOT_PATH . 'sources/classes/useragents/userAgentFunctions.php' );
$this->registry->setClass( 'userAgentFunctions', new userAgentFunctions( $this->registry ) );
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/useragents/userAgentFunctions.php', 'userAgentFunctions' );
$this->registry->setClass( 'userAgentFunctions', new $classToLoad( $this->registry ) );
}
$uAgent = $this->registry->getClass( 'userAgentFunctions' )->findUserAgentID( self::instance()->user_agent );
@@ -407,7 +407,7 @@ class adminSessions extends ips_MemberRegistry
* @param bool Authenticated or not
* @param string Message
* @param array Array of user agent data
* @return void
* @return @e void
*/
protected function _response( $validated, $message, $userAgentData=array() )
{