forked from extern/egroupware
Minor adjustments to work with register_globals off
This commit is contained in:
parent
dd450aa11b
commit
c016448915
@ -61,9 +61,11 @@
|
|||||||
|
|
||||||
function kill()
|
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 = createobject('admin.uicurrentsessions');
|
||||||
$this->ui->list_sessions();
|
$this->ui->list_sessions();
|
||||||
|
@ -172,7 +172,7 @@
|
|||||||
$this->template->set_var('lang_title',lang('Kill session'));
|
$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('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_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');
|
$this->template->pfp('out','form');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user