mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +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
|
// P: THEME LOADING
|
||||||
//
|
//
|
||||||
@@ -1488,6 +1490,30 @@ function init_session()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// 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;
|
global $user_pref, $currentUser;
|
||||||
|
|
||||||
$e107 = e107::getInstance();
|
$e107 = e107::getInstance();
|
||||||
|
Reference in New Issue
Block a user