From f66894895a0518c7f7b8f160ed584e37e01429c2 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 1 Jan 2004 15:38:15 +0000 Subject: [PATCH] ereg_replaced --- soap.php | 14 +++++++------- xmlrpc.php | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/soap.php b/soap.php index 7537e14eac..b60b646ff2 100644 --- a/soap.php +++ b/soap.php @@ -1,8 +1,8 @@ * + * eGroupWare - SOAP Server * + * http://www.egroupware.org * + * Written by Miles Lott * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * @@ -12,27 +12,27 @@ /* $Id$ */ - $GLOBALS['phpgw_info'] = array(); + $phpgw_info = array(); $GLOBALS['phpgw_info']['flags'] = array( 'disable_Template_class' => True, 'currentapp' => 'login', 'noheader' => True, 'disable_Template_class' => True ); - include('./header.inc.php'); $GLOBALS['server'] = CreateObject('phpgwapi.soap_server'); /* _debug_array($GLOBALS['server']);exit; */ /* include(PHPGW_API_INC . '/soaplib.soapinterop.php'); */ + /* Note: this command only available under Apache */ $headers = getallheaders(); if(ereg('Basic',$headers['Authorization'])) { $tmp = $headers['Authorization']; - $tmp = ereg_replace(' ','',$tmp); - $tmp = ereg_replace('Basic','',$tmp); + $tmp = str_replace(' ','',$tmp); + $tmp = str_replace('Basic','',$tmp); $auth = base64_decode(trim($tmp)); list($sessionid,$kp3) = split(':',$auth); diff --git a/xmlrpc.php b/xmlrpc.php index c6fda82111..6d1a995c68 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -1,7 +1,7 @@ * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * @@ -34,8 +34,8 @@ if(ereg('Basic',$headers['Authorization'])) { $tmp = $headers['Authorization']; - $tmp = ereg_replace(' ','',$tmp); - $tmp = ereg_replace('Basic','',$tmp); + $tmp = str_replace(' ','',$tmp); + $tmp = str_replace('Basic','',$tmp); $auth = base64_decode(trim($tmp)); list($sessionid,$kp3) = split(':',$auth);