phpgroupware-cvs
[Top][All Lists]
Advanced

[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()
                        );
                }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]