[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api class.admin.php,1.1.2.16,1.1.2.17
From: |
Joseph Engo <address@hidden> |
Subject: |
[Phpgroupware-cvs] api class.admin.php,1.1.2.16,1.1.2.17 |
Date: |
Fri, 21 Nov 2003 00:59:47 +0000 |
Update of /cvsroot/phpgroupware/api
In directory subversions:/tmp/cvs-serv29271/api
Modified Files:
Tag: proposal-branch
class.admin.php
Log Message:
- You can't delete your own session now
- Added function to return your TRUE sessionid
Index: class.admin.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/Attic/class.admin.php,v
retrieving revision 1.1.2.16
retrieving revision 1.1.2.17
diff -C2 -d -r1.1.2.16 -r1.1.2.17
*** class.admin.php 21 Nov 2003 00:45:45 -0000 1.1.2.16
--- class.admin.php 21 Nov 2003 00:59:45 -0000 1.1.2.17
***************
*** 103,106 ****
--- 103,112 ----
$args = $args->get(func_get_args(),__LINE__,__FILE__);
+ if ($args['ksid'] ==
$GLOBALS['phpgw']->session->get_true_sid())
+ {
+ $GLOBALS['msgbox']->add(lang('You can not
delete your own session'),__LINE__,__FILE__, 'warning');
+ return;
+ }
+
if ($args['answer'] == '##NOVAR##')
{
***************
*** 173,177 ****
// The array_merge() is to reset all the keys
to there proper order due to unset()
'current_users' =>
array_merge($sessions,array()),
! 'action_type' => 'current_users'
);
}
--- 179,185 ----
// The array_merge() is to reset all the keys
to there proper order due to unset()
'current_users' =>
array_merge($sessions,array()),
! 'action_type' => 'current_users',
! // FIXME: This will not work with SQL sessions
(jengo)
! 'current_sid' =>
$GLOBALS['phpgw']->session->get_true_sid()
);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api class.admin.php,1.1.2.16,1.1.2.17,
Joseph Engo <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] api/skins/default admin.xsl,1.1.2.2,1.1.2.3
- Next by Date:
[Phpgroupware-cvs] property/inc class.uiwo_hour.inc.php, 1.43, 1.44 class.solocation.inc.php, 1.37, 1.38 class.soproject.inc.php, 1.50, 1.51 class.uiproject.inc.php, 1.59, 1.60 class.uitts.inc.php, 1.48, 1.49 class.boproject.inc.php, 1.22, 1.23 class.uiworkorder.inc.php, 1.48, 1.49 hook_settings.inc.php, 1.15, 1.16
- Previous by thread:
[Phpgroupware-cvs] api/skins/default admin.xsl,1.1.2.2,1.1.2.3
- Next by thread:
[Phpgroupware-cvs] property/inc class.uiwo_hour.inc.php, 1.43, 1.44 class.solocation.inc.php, 1.37, 1.38 class.soproject.inc.php, 1.50, 1.51 class.uiproject.inc.php, 1.59, 1.60 class.uitts.inc.php, 1.48, 1.49 class.boproject.inc.php, 1.22, 1.23 class.uiworkorder.inc.php, 1.48, 1.49 hook_settings.inc.php, 1.15, 1.16
- Index(es):