Hi guys, I'm fairly new to PHP/SQL, and I'm attempting to integrate my site with phpBB3. What I need right now is a way to get the logged-in user's information from this code here somehow:
Code: Select all
define('IN_PHPBB', true);
$phpbb_root_path = 'forum/'; //relative path to phpBB3 forum directory
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
I need to get the typical member stuff like their new messages, their name, ID, etc so that I can put it in the pages of my site while they are logged in. Is $user an array of some sort I can just pull the data out with something like $user['username'], or is there something I'm missing?