Full Site Integration (like phpBB)

Status
This content is read-only, or is not open for further replies.

stampo

Guest
offline
For many years, I’ve had full phpBB session integration on my site using this simple PHP snippet:

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...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom