$this->welcome = isset($this->koward->conf['koward']['greeting']) ? $this->koward->conf['koward']['greeting'] : _("Welcome.");
+ $this->current_user = Auth::getAuth();
+
+ $session = Horde_Kolab_Session::singleton();
+ if (!empty($session->user_uid)) {
+ $user = $this->koward->getObject($session->user_uid);
+ $type = $this->koward->getType($user);
+ $this->role = $this->koward->objects[$type]['label'];
+ }
}
/**
<div id="menu">
<?= $this->menu->render(); ?>
</div>
+ <?php if (!empty($this->current_user)): ?>
+ <div id="menuBottom"><?php echo _("Current user: ") . $this->current_user; ?>
+ <?php if (!empty($this->role)) {echo '| ' . _("Role: ") . $this->role;} ?>
+ </div><br class="clear" />
+<?php endif; ?>
<?php $this->koward->notification->notify(array('listeners' => 'status')) ?>