public function getSessionDetails($path)
    {
        global $phpbb_root_path, $phpEx, $user, $db, $config, $cache, $template, $auth;

        // Enable to work even if forum is not available
        if (!is_file("$path/webb.config")) {
            return [
                'is_anonymous'  => "No one",
                'user_acronym'  => "NoOne",
                'user_email'    => "noone@dbwebb.se",
                'session_id'    => null,
            ];
        }

        define('IN_PHPBB', true);
        $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : $path;
        $phpEx = "php"; //substr(strrchr(__FILE__, '.'), 1);
        include("$path/common.php");

        // Start session management
        $user->session_begin();
        $auth->acl($user->data);
        $user->setup();

        return [
            'is_anonymous'  => ($user->data['user_id'] == ANONYMOUS),
            'user_acronym'  => $user->data['username_clean'],
            'user_email'    => $user->data['user_email'],
            'session_id'    => $user->data['session_id'],
        ];
    }
public function getSessionDetails($path)
    {
        global $phpbb_root_path, $phpEx, $user, $db, $config, $cache, $template, $auth;

        // Enable to work even if forum is not available
        if (!is_file("$path/webb.config")) {
            return [
                'is_anonymous'  => "No one",
                'user_acronym'  => "NoOne",
                'user_email'    => "noone@dbwebb.se",
                'session_id'    => null,
            ];
        }

        define('IN_PHPBB', true);
        $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : $path;
        $phpEx = "php"; //substr(strrchr(__FILE__, '.'), 1);
        include("$path/common.php");

        // Start session management
        $user->session_begin();
        $auth->acl($user->data);
        $user->setup();

        return [
            'is_anonymous'  => ($user->data['user_id'] == ANONYMOUS),
            'user_acronym'  => $user->data['username_clean'],
            'user_email'    => $user->data['user_email'],
            'session_id'    => $user->data['session_id'],
        ];
    }
public function getSessionDetails ( $ path ) { global $ phpbb_root_path , $ phpEx , $ user , $ db , $ config , $ cache , $ template , $ auth ; // Enable to work even if forum is not available if ( ! is_file ( "$path/webb.config" ) ) { return [ 'is_anonymous' => "No one" , 'user_acronym' => "NoOne" , 'user_email' => "noone@dbwebb.se" , 'session_id' => null , ] ; } define ( 'IN_PHPBB' , true ) ; $ phpbb_root_path = ( defined ( 'PHPBB_ROOT_PATH' ) ) ? PHPBB_ROOT_PATH : $ path ; $ phpEx = "php" ; //substr(strrchr(__FILE__, '.'), 1); include ( "$path/common.php" ) ; // Start session management $ user -> session_begin ( ) ; $ auth -> acl ( $ user -> data ) ; $ user -> setup ( ) ; return [ 'is_anonymous' => ( $ user -> data [ 'user_id' ] == ANONYMOUS ) , 'user_acronym' => $ user -> data [ 'username_clean' ] , 'user_email' => $ user -> data [ 'user_email' ] , 'session_id' => $ user -> data [ 'session_id' ] , ] ; }
Sample function to integrate with a phpbb installation and lend some
information on the authorized user.

@param string $path is the install path of PHPBB.
@return array with details of user.
Sample function to integrate with a phpbb installation and lend some information on the authorized user .