Version 3.4.6
This commit is contained in:
1 parent
e4478369d8
commit
b45ea0dffb
1568 files changed
+155104
-161665
No files matched your search
@@ -2,18 +2,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.5
|
||||
* IP.Board v3.4.6
|
||||
* Login handler abstraction
|
||||
* Last Updated: $Date: 2013-05-03 23:09:37 -0400 (Fri, 03 May 2013) $
|
||||
* Last Updated: $Date: 2013-09-05 21:09:43 -0400 (Thu, 05 Sep 2013) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: rashbrook $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since Tuesday 1st March 2005 (11:52)
|
||||
* @version $Revision: 12226 $
|
||||
* @version $Revision: 12346 $
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
@@ -33,6 +33,8 @@ class han_login
|
||||
protected $DB;
|
||||
protected $settings;
|
||||
protected $request;
|
||||
protected $cache;
|
||||
protected $caches;
|
||||
|
||||
/**
|
||||
* Login module registry
|
||||
@@ -103,6 +105,8 @@ class han_login
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
|
||||
//-----------------------------------------
|
||||
// Do not set member, memberData or lang
|
||||
@@ -440,6 +444,15 @@ class han_login
|
||||
IPSCookie::set( "member_id" , $member['member_id'] , 1, 0, FALSE, TRUE );
|
||||
IPSCookie::set( "pass_hash" , $member['member_login_key'], $_sticky, $_days, FALSE, TRUE );
|
||||
IPSCookie::set( "ipsconnect_" . md5( $this->settings['board_url'] . '/interface/ipsconnect/ipsconnect.php' ), '1', $_sticky, $_days, FALSE, FALSE );
|
||||
foreach( $this->caches['login_methods'] AS $k => $method )
|
||||
{
|
||||
if ( $method['login_folder_name'] == 'ipsconnect' AND $method['login_enabled'] )
|
||||
{
|
||||
$ipsConnectSettings = unserialize( $method['login_custom_config'] );
|
||||
|
||||
IPSCookie::set( "ipsconnect_" . md5( $ipsConnectSettings['master_url'] ), '1', $_sticky, $_days, FALSE, FALSE );
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -448,6 +461,15 @@ class han_login
|
||||
// IPSCookie::set( "pass_hash" , $member['member_login_key'], 0 );
|
||||
|
||||
IPSCookie::set( "ipsconnect_" . md5( $this->settings['board_url'] . '/interface/ipsconnect/ipsconnect.php' ), '1', 0, 0, FALSE, FALSE );
|
||||
foreach( $this->caches['login_methods'] AS $k => $method )
|
||||
{
|
||||
if ( $method['login_folder_name'] == 'ipsconnect' AND $method['login_enabled'] )
|
||||
{
|
||||
$ipsConnectSettings = unserialize( $method['login_custom_config'] );
|
||||
|
||||
IPSCookie::set( "ipsconnect_" . md5( $ipsConnectSettings['master_url'] ), '1', $_sticky, $_days, FALSE, FALSE );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
Reference in new issue
Block a user