you want to include the phpbb database inside your content ?
CODE
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
$mode = request_var('mode', 'allmaps');
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
this is from my annoncer.php page which is an external page for my phpbb, i used the same database and the user content so it has the same permissions as a forum

i think the part you mostly need is :
CODE
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
[/code]
oh btw this is for a rc2 but i changed to rc5 and it worked correctly... so i think its gonna be same for rc6 7.. and so on...
hope its what you wanted.