phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgroupware set_box.php,1.2,1.3


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgroupware set_box.php,1.2,1.3
Date: Sat, 06 Jul 2002 22:32:09 -0400

Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv6308

Modified Files:
        set_box.php 
Log Message:
This now uses get_var().

Index: set_box.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/set_box.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** set_box.php 23 Oct 2001 11:00:50 -0000      1.2
--- set_box.php 7 Jul 2002 02:31:42 -0000       1.3
***************
*** 30,33 ****
--- 30,34 ----
  //    $GLOBALS['phpgw']->preferences->save_repository();
  
+       $GLOBALS['app_box'] = intval(get_var('app',Array('GET')));
        function 
move_boxes($curr_position,$new_order,$offset,$value_to_check,$max_num)
        {
***************
*** 61,73 ****
                }
                
$GLOBALS['phpgw']->preferences->delete('portal_order',$new_order);
!               
$GLOBALS['phpgw']->preferences->add('portal_order',$new_order,intval($GLOBALS['HTTP_GET_VARS']['app']));
                        
                $GLOBALS['phpgw']->preferences->save_repository();
        }
  
!       switch($GLOBALS['HTTP_GET_VARS']['control'])
        {
                case 'up':
!                       $curr_position = 
$GLOBALS['phpgw']->common->find_portal_order(intval($GLOBALS['HTTP_GET_VARS']['app']));
                        $max_count = 
count($GLOBALS['phpgw_info']['user']['preferences']['portal_order']) - 1;
                        $offset = -1;
--- 62,74 ----
                }
                
$GLOBALS['phpgw']->preferences->delete('portal_order',$new_order);
!               
$GLOBALS['phpgw']->preferences->add('portal_order',$new_order,$GLOBALS['app_box']);
                        
                $GLOBALS['phpgw']->preferences->save_repository();
        }
  
!       switch(get_var('control',Array('GET')))
        {
                case 'up':
!                       $curr_position = 
$GLOBALS['phpgw']->common->find_portal_order($GLOBALS['app_box']);
                        $max_count = 
count($GLOBALS['phpgw_info']['user']['preferences']['portal_order']) - 1;
                        $offset = -1;
***************
*** 83,87 ****
                        break;
                case 'down':
!                       $curr_position = 
$GLOBALS['phpgw']->common->find_portal_order(intval($GLOBALS['HTTP_GET_VARS']['app']));
                        $max_count = 
count($GLOBALS['phpgw_info']['user']['preferences']['portal_order']) - 1;
                        $offset = 1;
--- 84,88 ----
                        break;
                case 'down':
!                       $curr_position = 
$GLOBALS['phpgw']->common->find_portal_order($GLOBALS['app_box']);
                        $max_count = 
count($GLOBALS['phpgw_info']['user']['preferences']['portal_order']) - 1;
                        $offset = 1;




reply via email to

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