rendered paste body
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 = "<a href=\"{$conf['logoutLink']}\" title=\"Logout\">Logout</a>";
$status = '<div style="position: absolute; top: 5px; right: 5px; font-size: 11px; color: rgb(224, 224, 224); z-index: 100000;">[you are logged in as: '.$GLOBALS['TSFE'] -> fe_user->user['username'].' '.$logout.']</div>';
return $status;
}
return '<div style="position: absolute; top: 5px; right: 5px; font-size: 11px; color: rgb(224, 224, 224); z-index: 100000;">[Not logged in]</div>';
}
}