phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: headlines grabnewssites.php,1.7,1.8 preferences.


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: headlines grabnewssites.php,1.7,1.8 preferences.php,1.21,1.22 preferences_other.php,1.1,1.2
Date: Tue, 30 Apr 2002 13:46:31 -0400

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

Modified Files:
        grabnewssites.php preferences.php preferences_other.php 
Log Message:
Converting to get_var() for all HTTP_*_VARS.

Index: grabnewssites.php
===================================================================
RCS file: /cvsroot/phpgroupware/headlines/grabnewssites.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** grabnewssites.php   31 Mar 2002 15:56:28 -0000      1.7
--- grabnewssites.php   30 Apr 2002 17:46:28 -0000      1.8
***************
*** 22,26 ****
        include('../header.inc.php');
  
!       $dropall = $HTTP_GET_VARS['dropall'] ? $HTTP_GET_VARS['dropall'] : '';
  
        $headlines = CreateObject('headlines.headlines');
--- 22,26 ----
        include('../header.inc.php');
  
!       $dropall = get_var('dropall',Array('GET'));
  
        $headlines = CreateObject('headlines.headlines');

Index: preferences.php
===================================================================
RCS file: /cvsroot/phpgroupware/headlines/preferences.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** preferences.php     31 Mar 2002 16:58:53 -0000      1.21
--- preferences.php     30 Apr 2002 17:46:28 -0000      1.22
***************
*** 64,70 ****
                }
  
!               if(count($GLOBALS['HTTP_POST_VARS']['headlines']))
                {
!                       while($value = 
each($GLOBALS['HTTP_POST_VARS']['headlines']))
                        {
                                
$GLOBALS['phpgw']->preferences->add('headlines',$value[1],'True');
--- 64,71 ----
                }
  
!               $user_selected = get_var('headlines',Array('POST'));
!               if(count($user_selected))
                {
!                       while($value = each($user_selected))
                        {
                                
$GLOBALS['phpgw']->preferences->add('headlines',$value[1],'True');

Index: preferences_other.php
===================================================================
RCS file: /cvsroot/phpgroupware/headlines/preferences_other.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** preferences_other.php       31 Mar 2002 13:28:53 -0000      1.1
--- preferences_other.php       30 Apr 2002 17:46:28 -0000      1.2
***************
*** 28,33 ****
                echo parse_navbar();
        }
  
!       if($GLOBALS['HTTP_POST_VARS']['submit'])
        {
                
$GLOBALS['phpgw']->preferences->change('headlines','headlines_layout');
--- 28,34 ----
                echo parse_navbar();
        }
+       $submit = get_var('submit',Array('POST'));
  
!       if($submit)
        {
                
$GLOBALS['phpgw']->preferences->change('headlines','headlines_layout');
***************
*** 51,55 ****
        $GLOBALS['phpgw']->template->set_var('template_label',lang('Choose 
layout'));
  
!       if($GLOBALS['HTTP_POST_VARS']['submit'])
        {
                $selected[$headlines_layout] = ' selected';
--- 52,56 ----
        $GLOBALS['phpgw']->template->set_var('template_label',lang('Choose 
layout'));
  
!       if($submit)
        {
                $selected[$headlines_layout] = ' selected';




reply via email to

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