phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: notes/inc hook_deleteaccount.inc.php,1.1,1.2


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: notes/inc hook_deleteaccount.inc.php,1.1,1.2
Date: Mon, 29 Apr 2002 21:09:15 -0400

Update of /cvsroot/phpgroupware/notes/inc
In directory subversions:/tmp/cvs-serv16963

Modified Files:
        hook_deleteaccount.inc.php 
Log Message:
Converting to get_var() for all HTTP_*_VARS.

Index: hook_deleteaccount.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/notes/inc/hook_deleteaccount.inc.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** hook_deleteaccount.inc.php  28 Nov 2001 03:42:56 -0000      1.1
--- hook_deleteaccount.inc.php  30 Apr 2002 01:09:13 -0000      1.2
***************
*** 18,29 ****
        $db2->lock($table_locks);
  
!       if(intval($GLOBALS['HTTP_POST_VARS']['new_owner'])==0)
        {
!               $db2->query('DELETE FROM phpgw_notes WHERE 
note_owner='.intval($GLOBALS['HTTP_POST_VARS']['account_id']),__LINE__,__FILE__);
        }
        else
        {
!               $db2->query('UPDATE phpgw_notes SET 
note_owner='.intval($GLOBALS['HTTP_POST_VARS']['new_owner'])
!                       . ' WHERE 
note_owner='.intval($GLOBALS['HTTP_POST_VARS']['account_id']),__LINE__,__FILE__);
        }
        $db2->unlock();
--- 18,31 ----
        $db2->lock($table_locks);
  
!       $new_owner = intval(get_var('new_owner',Array('POST')));
!       $account_id = intval(get_var('account_id',Array('POST')));
!       if($new_owner==0)
        {
!               $db2->query('DELETE FROM phpgw_notes WHERE 
note_owner='.$account_id,__LINE__,__FILE__);
        }
        else
        {
!               $db2->query('UPDATE phpgw_notes SET note_owner='.$new_owner
!                       . ' WHERE note_owner='.$account_id,__LINE__,__FILE__);
        }
        $db2->unlock();




reply via email to

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