if (!function_exists('user_getusername')) { function user_getusername($data, $conf){ // t3lib_div::print_array($GLOBALS['TSFE'] -> fe_user->user); if ($GLOBALS['TSFE'] -> fe_user->user['uid']) { $logout = "Logout"; $status = '
[you are logged in as: '.$GLOBALS['TSFE'] -> fe_user->user['username'].' '.$logout.']
'; return $status; } return '
[Not logged in]
'; } }