phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgroupware soap.php


From: Dave Hall
Subject: [Phpgroupware-cvs] phpgroupware soap.php
Date: Thu, 28 Dec 2006 04:55:14 +0000

CVSROOT:        /sources/phpgroupware
Module name:    phpgroupware
Changes by:     Dave Hall <skwashd>     06/12/28 04:55:14

Modified files:
        .              : soap.php 

Log message:
        modernise

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/soap.php?cvsroot=phpgroupware&r1=1.9&r2=1.10

Patches:
Index: soap.php
===================================================================
RCS file: /sources/phpgroupware/phpgroupware/soap.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- soap.php    15 Apr 2005 13:19:15 -0000      1.9
+++ soap.php    28 Dec 2006 04:55:14 -0000      1.10
@@ -7,16 +7,16 @@
        * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc. 
http://www.fsf.org/
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package phpgroupware
-       * @version $Id: soap.php,v 1.9 2005/04/15 13:19:15 powerstat Exp $
+       * @version $Id: soap.php,v 1.10 2006/12/28 04:55:14 skwashd Exp $
        */
 
        $GLOBALS['phpgw_info'] = array();
 
-       $GLOBALS['phpgw_info']['flags'] = array(
-               'disable_Template_class' => True,
+       $GLOBALS['phpgw_info']['flags'] = array
+       (
+               'disable_Template_class'        => true,
                'currentapp' => 'login',
-               'noheader'   => True,
-               'disable_Template_class' => True
+               'noheader'                                      => true
        );
 
        /**
@@ -25,6 +25,11 @@
        include_once('header.inc.php');
 
        /**
+       * Include the SOAP specific functions
+       */
+       include_once(PHPGW_API_INC . '/soap_functions.inc.php');
+
+       /**
        * @global object $GLOBALS['server']
        */
        $GLOBALS['server'] = CreateObject('phpgwapi.soap_server');
@@ -36,6 +41,7 @@
 
        if(ereg('Basic',$headers['Authorization']))
        {
+               //this seems silly to me - why not just use the SERVER vars? 
skwashd
                $tmp = $headers['Authorization'];
                $tmp = ereg_replace(' ','',$tmp);
                $tmp = ereg_replace('Basic','',$tmp);
@@ -72,5 +78,14 @@
                );
        }
 
-       $GLOBALS['server']->service($HTTP_RAW_POST_DATA);
+       if ( isset($HTTP_RAW_POST_DATA) )
+       {
+               $request_xml = $HTTP_RAW_POST_DATA;
+       }
+       else
+       {
+               $request_xml = implode("\r\n", file('php://input'));
+       }
+
+       $GLOBALS['server']->service($request_xml);
 ?>




reply via email to

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