Minor adjustments to work with register_globals off

This commit is contained in:
Miles Lott 2001-09-28 22:04:10 +00:00
parent dd450aa11b
commit c016448915
2 changed files with 7 additions and 5 deletions

View File

@ -61,12 +61,14 @@
function kill()
{
if ($GLOBALS['ksession'] && $GLOBALS['sessionid'] != $GLOBALS['ksession'] && ! $GLOBALS['phpgw']->acl->check('current_sessions_access',8,'admin'))
if ($GLOBALS['HTTP_GET_VARS']['ksession'] &&
($GLOBALS['sessionid'] != $GLOBALS['HTTP_GET_VARS']['ksession']) &&
! $GLOBALS['phpgw']->acl->check('current_sessions_access',8,'admin'))
{
$GLOBALS['phpgw']->session->destroy($GLOBALS['ksession'],0);
$GLOBALS['phpgw']->session->destroy($GLOBALS['HTTP_GET_VARS']['ksession'],0);
}
$this->ui = createobject('admin.uicurrentsessions');
$this->ui->list_sessions();
}
}
}

View File

@ -172,9 +172,9 @@
$this->template->set_var('lang_title',lang('Kill session'));
$this->template->set_var('lang_message',lang('Are you sure you want to kill this session ?'));
$this->template->set_var('link_no','<a href="' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions') . '">' . lang('No') . '</a>');
$this->template->set_var('link_yes','<a href="' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.bocurrentsessions.kill&ksession=' . $GLOBALS['ksession']) . '">' . lang('Yes') . '</a>');
$this->template->set_var('link_yes','<a href="' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.bocurrentsessions.kill&ksession=' . $GLOBALS['HTTP_GET_VARS']['ksession']) . '">' . lang('Yes') . '</a>');
$this->template->pfp('out','form');
}
}
}