phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: todo/inc class.bopreferences.inc.php,1.2,1.3 hoo


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: todo/inc class.bopreferences.inc.php,1.2,1.3 hook_deleteaccount.inc.php,1.2,1.3
Date: Sun, 28 Apr 2002 22:56:35 -0400

Update of /cvsroot/phpgroupware/todo/inc
In directory subversions:/tmp/cvs-serv17062

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

Index: class.bopreferences.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/todo/inc/class.bopreferences.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.bopreferences.inc.php 28 Apr 2002 19:32:14 -0000      1.2
--- class.bopreferences.inc.php 29 Apr 2002 02:56:30 -0000      1.3
***************
*** 32,41 ****
                function preferences()
                {
!                       if (isset($GLOBALS['HTTP_POST_VARS']['submit']))
                        {
                                
$GLOBALS['phpgw']->preferences->read_repository();
!                               if 
($GLOBALS['HTTP_POST_VARS']['prefs']['mainscreen_showevents'] == True)
                                {
!                                       
$GLOBALS['phpgw']->preferences->add('todo','mainscreen_showevents',$GLOBALS['HTTP_POST_VARS']['prefs']['mainscreen_showevents']);
                                }
                                else
--- 32,43 ----
                function preferences()
                {
!                       $submit = get_var('submit',Array('POST'));
!                       if($submit)
                        {
                                
$GLOBALS['phpgw']->preferences->read_repository();
!                               $prefs = get_var('prefs',Array('POST'));
!                               if($prefs['mainscreen_showevents'] == True)
                                {
!                                       
$GLOBALS['phpgw']->preferences->add('todo','mainscreen_showevents',$prefs['mainscreen_showevents']);
                                }
                                else

Index: hook_deleteaccount.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/todo/inc/hook_deleteaccount.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** hook_deleteaccount.inc.php  28 Nov 2001 03:42:56 -0000      1.2
--- hook_deleteaccount.inc.php  29 Apr 2002 02:56:30 -0000      1.3
***************
*** 17,28 ****
        $db2->lock($table_locks);
  
!       if(intval($GLOBALS['HTTP_POST_VARS']['new_owner'])==0)
        {
!               $db2->query('DELETE FROM phpgw_todo WHERE 
todo_owner='.intval($GLOBALS['HTTP_POST_VARS']['account_id']),__LINE__,__FILE__);
        }
        else
        {
!               $db2->query('UPDATE phpgw_todo SET 
todo_owner='.intval($GLOBALS['HTTP_POST_VARS']['new_owner'])
!                       . ' WHERE 
todo_owner='.intval($GLOBALS['HTTP_POST_VARS']['account_id']),__LINE__,__FILE__);
        }
        $db2->unlock();
--- 17,30 ----
        $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_todo WHERE 
todo_owner='.$account_id,__LINE__,__FILE__);
        }
        else
        {
!               $db2->query('UPDATE phpgw_todo SET todo_owner='.$new_owner
!                       . ' WHERE todo_owner='.$account_id,__LINE__,__FILE__);
        }
        $db2->unlock();




reply via email to

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