From a403215f2ffe82b072d2988fef907b0ed2c95696 Mon Sep 17 00:00:00 2001 From: jengo Date: Sat, 10 Feb 2001 03:27:02 +0000 Subject: [PATCH] Re-added the powered by section and current users --- phpgwapi/templates/verdilak/navbar.inc.php | 7 +++---- phpgwapi/templates/verdilak/navbar.tpl | 10 ++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/phpgwapi/templates/verdilak/navbar.inc.php b/phpgwapi/templates/verdilak/navbar.inc.php index 51f23fd8be..a1fe024095 100644 --- a/phpgwapi/templates/verdilak/navbar.inc.php +++ b/phpgwapi/templates/verdilak/navbar.inc.php @@ -58,16 +58,15 @@ } $tpl->set_var("logout_img",$ir . "/logout-grey.gif"); -/* if ($phpgw_info["server"]["showpoweredbyon"] == "top") { - $tpl->set_var("powered_by",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["versions"]["phpgwapi"])); - } + $tpl->set_var("powered_by",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["versions"]["phpgwapi"])); + if (isset($phpgw_info["navbar"]["admin"]) && isset($phpgw_info["user"]["preferences"]["common"]["show_currentusers"])) { $db = $phpgw->db; $db->query("select count(*) from phpgw_sessions"); $db->next_record(); $tpl->set_var("current_users",' ' . lang("Current users") . ': ' . $db->f(0) . ''); - } */ + } $tpl->set_var("user_info",$phpgw->common->display_fullname() . " - " . lang($phpgw->common->show_date(time(),"l")) . " " . lang($phpgw->common->show_date(time(),"F")) . " " diff --git a/phpgwapi/templates/verdilak/navbar.tpl b/phpgwapi/templates/verdilak/navbar.tpl index 45bd3b1e6f..85026b431e 100755 --- a/phpgwapi/templates/verdilak/navbar.tpl +++ b/phpgwapi/templates/verdilak/navbar.tpl @@ -16,4 +16,14 @@ {applications} + + + + + +
+ {current_users} + + {powered_by} +