If this is inside phpBB, there is no need for any checking since phpBB supplies the $user object. If this is for an external page which includes the phpBB common.php file, again, the $user object will be available. If this is for an external page which includes no phpBB code, how are you obtaining ...