From: hickert Date: Fri, 30 Jul 2010 10:06:55 +0000 (+0000) Subject: Updated logged in message of the titlebar X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1da8db11d888f9484c497bdf9715fb36bee4d3a0;p=gosa.git Updated logged in message of the titlebar -It now includes the location name git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19296 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index 07c69d1db..c03c69b9d 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -329,11 +329,14 @@ if (session::global_get('js')==FALSE){ $smarty->assign("help_method"," onclick=\"return popup('helpviewer.php$plug','GOsa help');\""); } + +$loggedin = sprintf(_("You're logged in as %s"), + "".$ui->cn." [".$ui->username."] / ".$config->current['NAME']."  "); if($ui->ignore_acl_for_current_user()){ - $smarty->assign ("loggedin", ""._("ACLs are disabled")." ".sprintf(_("You're logged in as %s"), "".$ui->cn." [".$ui->username."]")); -}else{ - $smarty->assign ("loggedin", sprintf(_("You're logged in as %s"), "".$ui->cn." [".$ui->username."]")); + $loggedin = ""._("ACLs are disabled")." ".$loggedin; } + +$smarty->assign ("loggedin", $loggedin); $smarty->assign ("go_logo", get_template_path('images/go_logo.png')); $smarty->assign ("go_base", get_template_path('images/dtree.png')); $smarty->assign ("go_home", get_template_path('images/gohome.png'));