forked from extern/egroupware
Add userinfo and current users to navbar
This commit is contained in:
parent
72fc7843e8
commit
41ce4a71aa
@ -73,13 +73,14 @@
|
|||||||
/* if ($phpgw_info["server"]["showpoweredbyon"] == "top") {
|
/* 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"])) {
|
if (isset($phpgw_info["navbar"]["admin"]) && isset($phpgw_info["user"]["preferences"]["common"]["show_currentusers"])) {
|
||||||
$db = $phpgw->db;
|
$db = $phpgw->db;
|
||||||
$db->query("select count(*) from phpgw_sessions");
|
$db->query("select count(*) from phpgw_sessions");
|
||||||
$db->next_record();
|
$db->next_record();
|
||||||
$tpl->set_var("current_users",'<a href="' . $phpgw->link("/admin/currentusers.php") . '"> '
|
$tpl->set_var("current_users",'<a href="' . $phpgw->link("/admin/currentusers.php") . '"> '
|
||||||
. lang("Current users") . ': ' . $db->f(0) . '</a>');
|
. lang("Current users") . ': ' . $db->f(0) . '</a>');
|
||||||
} */
|
}
|
||||||
$tpl->set_var("user_info",$phpgw->common->display_fullname() . " - "
|
$tpl->set_var("user_info",$phpgw->common->display_fullname() . " - "
|
||||||
. lang($phpgw->common->show_date(time(),"l")) . " "
|
. lang($phpgw->common->show_date(time(),"l")) . " "
|
||||||
. lang($phpgw->common->show_date(time(),"F")) . " "
|
. lang($phpgw->common->show_date(time(),"F")) . " "
|
||||||
|
@ -41,7 +41,12 @@
|
|||||||
|
|
||||||
</TD>
|
</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
<TR>
|
||||||
|
<TD ALIGN="left" COLSPAN="2">
|
||||||
|
{user_info} {current_users}
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
<TR>
|
<TR>
|
||||||
<TD>
|
<TD>
|
||||||
|
|
||||||
<!-- END navbar -->
|
<!-- END navbar -->
|
||||||
|
Loading…
Reference in New Issue
Block a user