Removed a few references to session->id

This commit is contained in:
jengo 2000-09-04 21:11:16 +00:00
parent 5153a56400
commit 6716ab839c
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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;
}