Index: typo3/backend.php =================================================================== --- typo3/backend.php (revision 3023) +++ typo3/backend.php (working copy) @@ -264,14 +264,31 @@ * @return string html code snippet displaying the currently logged in user */ private function getLoggedInUserLabel() { - $username = '
';; + global $BE_USER, $BACK_PATH; + $icon = 'isAdmin() ? + 'gfx/i/be_users_admin.gif' : + 'gfx/i/be_users.gif', + 'width="14" height="14"' + ).' title="" alt="" + onclick="top.goToModule(\'user_setup\');this.blur();return false;" + style="cursor:pointer;" + />'; + + $label = $GLOBALS['BE_USER']->user['realName'] ? + $BE_USER->user['realName'].' ['.$BE_USER->user['username'].']' : + '['.$BE_USER->user['username'].']'; + + $username = '">'.$icon.''.htmlspecialchars($label) . '; + // superuser mode if($BE_USER->user['ses_backuserid']) { - $username = ' '; + $username = ' su-user">SU: '.$icon.''.htmlspecialchars($label).''; } - return $username; + return '