Browse code

Zeige Kundennummer und UID in der Userinfo-Box an

Bernd Wurst authored on29/01/2013 09:09:10
Showing1 changed files
... ...
@@ -135,12 +135,11 @@ if ($role != ROLE_ANONYMOUS) {
135 135
   elseif ($role & ROLE_SYSTEMUSER) {
136 136
     $userinfo .= '<strong>'.$_SESSION['userinfo']['username'].'</strong>';
137 137
     $userinfo .= '<br />'.$_SESSION['userinfo']['name'];
138
-    $userinfo .= '<br />(Benutzer'.(($role & ROLE_CUSTOMER) ? ', Kunde' : '').')';
138
+    $userinfo .= '<br />(UID '.$_SESSION['userinfo']['uid'].(($role & ROLE_CUSTOMER) ? ', Kunde '.$_SESSION['customerinfo']['customerno'] : '').')';
139 139
   }
140 140
   elseif ($role & ROLE_CUSTOMER) {
141
-    $userinfo .= '<strong>'.$_SESSION['customerinfo']['customerno'].'</strong>';
142
-    $userinfo .= '<br />'.$_SESSION['customerinfo']['name'];
143
-    $userinfo .= '<br />(Kunde)';
141
+    $userinfo .= '<strong>'.$_SESSION['customerinfo']['name'].'</strong>';
142
+    $userinfo .= '<br />(Kunde '.$_SESSION['customerinfo']['customerno'].')';
144 143
   }
145 144
   elseif ($role & (ROLE_MAILACCOUNT | ROLE_VMAIL_ACCOUNT)) {
146 145
     $userinfo .= '<strong>'.$_SESSION['mailaccount'].'</strong><br />(E-Mail-Account)';