what you mean? have your site check if the user is logged while outside PHPBB? because if it is, it would just need to check the PHPBB cookie and validate it. I can't write a real example because I never studied PHPBB's source code but it shound be something along these lines
$logged = false;
if (isset ($_COOKIE['PHPBB_COOKIE']){
$data = unserialize ($_COOKIE['PHPBB_COOKIE']);
$sql = '
SELECT * from `users`
WHERE `id` = \''.$data['id'].'\'
';
$result = mysql_query ($sql);
$result = mysql_fetch_assoc ($result);
if ($data['password'] == $result['password']) $logged = true;
}
if ($logged) {
///routine for when he is logged in
}
else {
///routine for when he is not logged in
}
it must be reminded that the above code will likely NOT work, it's just to give you an idea of the guidelines to follow in order to verify if the used is logged in on PHPBB.
in order to write a real script you'll have to figure out how PHPBB stores stuff in order to use the information correctly.
doesn't PHPBB have an own community? I think they might be able to work this out better. I don't know how many people here actually studied PHPBB's source code