From a2488c3cfe03f93629eef8612bb389a6e7e3eff9 Mon Sep 17 00:00:00 2001 From: Matthias Grimm Date: Thu, 5 May 2005 14:24:26 +0200 Subject: logininfo_fullname This patch changes the userinfo display in the bottom left edge of the screen, right above the bottom bar. If the user is logged in his full name will be displayed instead of showing his user name. darcs-hash:20050505122426-4145d-cdbde61bf70423a5e22bbf5f3f126ba96d4d2ca1.gz --- inc/template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/template.php b/inc/template.php index 5ab8ea6a5..4c782ace9 100644 --- a/inc/template.php +++ b/inc/template.php @@ -410,6 +410,7 @@ function tpl_youarehere(){ /** * Print info if the user is logged in + * and show full name in that case * * Could be enhanced with a profile link in future? * @@ -417,8 +418,9 @@ function tpl_youarehere(){ */ function tpl_userinfo(){ global $lang; + global $INFO; if($_SERVER['REMOTE_USER']) - print $lang['loggedinas'].': '.$_SERVER['REMOTE_USER']; + print $lang['loggedinas'].': '.$INFO['userinfo']['name']; } /** -- cgit v1.2.3