1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? 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');
// affiche toutes les données de la session
//print_r($user->data);
if (($user-> data['username']!="Anonymous")){
echo $user-> data['username'];
}
else
{
echo "blabla";
} |
Partager