mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
hybridAuth work - still some issues.
This commit is contained in:
26
class2.php
26
class2.php
@@ -633,6 +633,8 @@ if(isset($pref['e_module_list']) && $pref['e_module_list'])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// P: THEME LOADING
|
||||
//
|
||||
@@ -1486,6 +1488,30 @@ function init_session()
|
||||
# - return boolean
|
||||
# - scope public
|
||||
*/
|
||||
|
||||
|
||||
// Experimental ------------------------- see /index.php
|
||||
|
||||
if($_SESSION['E:SOCIAL'] != FALSE)
|
||||
{
|
||||
$user = $_SESSION['E:SOCIAL'];
|
||||
// print_a($_SESSION['E:SOCIAL']);
|
||||
define('USER', true);
|
||||
define('USERID', 1);
|
||||
define('USERNAME', $user['displayName']);
|
||||
define('USERTHEME', false);
|
||||
define('ADMIN', false);
|
||||
define('GUEST', false);
|
||||
define('USERCLASS', '');
|
||||
define('USEREMAIL', $user['email']);
|
||||
define('USERCLASS_LIST', '');
|
||||
define('USERCLASS', '');
|
||||
define('USERIMAGE', $user['photoURL']);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------
|
||||
|
||||
|
||||
global $user_pref, $currentUser;
|
||||
|
Reference in New Issue
Block a user