ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 28,573
- Points
- 823
Reputation:
For many years, I’ve had full phpBB session integration on my site using this simple PHP snippet:
Code:
This allowed me to do things like:
Code:
…from anywhere on my site, outside phpBB...
Read more
Continue reading...
Code:
Code:
define('IN_PHPBB', true);
$phpbb_root_path = ROOT_PATH . 'forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$request->enable_super_globals();
This allowed me to do things like:
Code:
echo json_encode($user->data['username']);
…from anywhere on my site, outside phpBB...
Read more
Continue reading...