phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: meerkat index.php,1.5,1.6


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: meerkat index.php,1.5,1.6
Date: Tue, 30 Apr 2002 10:19:06 -0400

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

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

Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/meerkat/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** index.php   4 Jan 2002 01:24:54 -0000       1.5
--- index.php   30 Apr 2002 14:19:03 -0000      1.6
***************
*** 52,56 ****
  
        // check if we're posting a comment, and send it if so
!       $storyid=$HTTP_POST_VARS['storyid'];
        if ($storyid)
        {
--- 52,60 ----
  
        // check if we're posting a comment, and send it if so
!       $storyid     = get_var('storyid',Array('POST'));
!       $name        = get_var('name',Array('POST'));
!       $commenttext = get_var('commenttext',Array('POST'));
!       $catid       = get_var('catid',Array('POST'));
!       $chanid      = get_var('chanid',Array('POST'));
        if ($storyid)
        {
***************
*** 59,69 ****
                        Array(
                                CreateObject('phpgwapi.xmlrpcval',$storyid),
!                               
CreateObject('phpgwapi.xmlrpcval',stripslashes($HTTP_POST_VARS['name'])),
!                               
CreateObject('phpgwapi.xmlrpcval',stripslashes($HTTP_POST_VARS['commenttext']))
                        )
                );
  
                // send the browser back to the originating page
!               Header('Location: 
'.$GLOBALS['phpgw']->link('/meerkat/index.php','catid='.$HTTP_POST_VARS['catid'].'&chanid='.$HTTP_POST_VARS['chanid'].'&oc='.$HTTP_POST_VARS['catid']));
                $GLOBALS['phpgw']->common->phpgw_exit();
        }
--- 63,73 ----
                        Array(
                                CreateObject('phpgwapi.xmlrpcval',$storyid),
!                               
CreateObject('phpgwapi.xmlrpcval',stripslashes($name)),
!                               
CreateObject('phpgwapi.xmlrpcval',stripslashes($commenttext))
                        )
                );
  
                // send the browser back to the originating page
!               Header('Location: 
'.$GLOBALS['phpgw']->link('/meerkat/index.php','catid='.$catid.'&chanid='.$chanid.'&oc='.$catid));
                $GLOBALS['phpgw']->common->phpgw_exit();
        }
***************
*** 75,82 ****
        
        // handle incoming parameters
!       $catid = $HTTP_POST_VARS['catid'] ? $HTTP_POST_VARS['catid'] : 
$HTTP_GET_VARS['catid'];
!       if($HTTP_POST_VARS['oc']==$catid || $HTTP_GET_VARS['oc'] == $catid)
        {
!               $chanid = $HTTP_POST_VARS['chanid'] ? $HTTP_POST_VARS['chanid'] 
: $HTTP_GET_VARS['chanid'];
        }
        else
--- 79,87 ----
        
        // handle incoming parameters
!       $catid  = get_var('catid',Array('GET','POST'));
!       $oc     = get_var('oc',Array('GET','POST'));
!       if($oc==$catid)
        {
!               $chanid = get_var('chanid',Array('GET','POST'));
        }
        else
***************
*** 88,94 ****
        $client = 
CreateObject('phpgwapi.xmlrpc_client','/meerkat/xml-rpc/server.php','www.oreillynet.com',
 80);
  
!       if($HTTP_POST_VARS['comment'] || $HTTP_GET_VARS['comment'])
        {
-               $comment = $HTTP_POST_VARS['comment'] ? 
$HTTP_POST_VARS['comment'] : $HTTP_GET_VARS['comment'];
                // we're making a comment on a story,
                // so display a comment form.
--- 93,99 ----
        $client = 
CreateObject('phpgwapi.xmlrpc_client','/meerkat/xml-rpc/server.php','www.oreillynet.com',
 80);
  
!       $comment  = get_var('comment',Array('GET','POST'));
!       if($comment)
        {
                // we're making a comment on a story,
                // so display a comment form.




reply via email to

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