mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Removed a few references to session->id
This commit is contained in:
parent
5153a56400
commit
6716ab839c
@ -77,7 +77,7 @@
|
||||
$t->set_var("row_edit",'<a href="'.$phpgw->link("editaccount.php","con="
|
||||
. $phpgw->db->f("con")) . '"> ' . lang_common("Edit") . ' </a>');
|
||||
|
||||
if ($phpgw->session->loginid != $phpgw->db->f("loginid")) {
|
||||
if ($phpgw_info["user"]["userid"] != $phpgw->db->f("loginid")) {
|
||||
$t->set_var("row_delete",'<a href="' . $phpgw->link("deleteaccount.php",'con='
|
||||
. $phpgw->db->f("con")) . '"> '.lang_common("Delete").' </a>');
|
||||
} else {
|
||||
|
@ -67,7 +67,7 @@
|
||||
$t->set_var("row_logintime",$phpgw->common->show_date($phpgw->db->f("logintime")));
|
||||
$t->set_var("row_idle",gmdate("G:i:s",(time() - $phpgw->db->f("dla"))));
|
||||
|
||||
if ($phpgw->db->f("sessionid") != $phpgw->session->id) {
|
||||
if ($phpgw->db->f("sessionid") != $phpgw_info["user"]["sessionid"]) {
|
||||
$t->set_var("row_kill",'<a href="' . $phpgw->link("killsession.php","ksession="
|
||||
. $phpgw->db->f("sessionid") . "&kill=true\">" . lang_admin("Kill")).'</a>');
|
||||
} else {
|
||||
|
@ -19,7 +19,7 @@
|
||||
include("../header.inc.php");
|
||||
// Make sure they are not attempting to delete there own account.
|
||||
// If they are, they should not reach this point anyway.
|
||||
if ($phpgw->session->con == $con) {
|
||||
if ($phpgw_info["user"]["con"] == $con) {
|
||||
Header("Location: " . $phpgw->link("accounts.php"));
|
||||
exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user