From ecf581cc344a71a5c32d30890395745bd1d27a85 Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 22 Nov 2000 04:27:38 +0000 Subject: [PATCH] Fixed currentusers.php not showing the link properly and added code to split off the loginid and domain --- admin/currentusers.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/admin/currentusers.php b/admin/currentusers.php index 753a7a0676..543dd4f97b 100755 --- a/admin/currentusers.php +++ b/admin/currentusers.php @@ -64,14 +64,21 @@ $phpgw->templater_color = $phpgw->nextmatchs->alternate_row_color($phpgw->templater_color); $phpgw->template->set_var("tr_color",$phpgw->templater_color); - $phpgw->template->set_var("row_loginid",$phpgw->db->f("session_lid")); + if (ereg("@",$phpgw->db->f("session_lid"))) { + $t = split("@",$phpgw->db->f("session_lid")); + $loginid = $t[0]; + } else { + $loginid = $phpgw->db->f("session_lid"); + } + + $phpgw->template->set_var("row_loginid",$loginid); $phpgw->template->set_var("row_ip",$phpgw->db->f("session_ip")); $phpgw->template->set_var("row_logintime",$phpgw->common->show_date($phpgw->db->f("session_logintime"))); $phpgw->template->set_var("row_idle",gmdate("G:i:s",(time() - $phpgw->db->f("session_dla")))); if ($phpgw->db->f("session_id") != $phpgw_info["user"]["sessionid"]) { $phpgw->template->set_var("row_kill",'" . lang("Kill")).''); + . $phpgw->db->f("session_id") . "&kill=true") . "\">" . lang("Kill").''); } else { $phpgw->template->set_var("row_kill"," "); }