ereg_replaced

This commit is contained in:
Miles Lott 2004-01-01 15:38:15 +00:00
parent 05a7acf450
commit f66894895a
2 changed files with 10 additions and 10 deletions

View File

@ -1,8 +1,8 @@
<?php <?php
/**************************************************************************\ /**************************************************************************\
* phpGroupWare - SOAP Server * * eGroupWare - SOAP Server *
* http://www.phpgroupware.org * * http://www.egroupware.org *
* Written by Miles Lott <milosch@phpgroupware.org> * * Written by Miles Lott <milos@groupwhere.org> *
* -------------------------------------------- * * -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it * * 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 * * under the terms of the GNU General Public License as published by the *
@ -12,27 +12,27 @@
/* $Id$ */ /* $Id$ */
$GLOBALS['phpgw_info'] = array(); $phpgw_info = array();
$GLOBALS['phpgw_info']['flags'] = array( $GLOBALS['phpgw_info']['flags'] = array(
'disable_Template_class' => True, 'disable_Template_class' => True,
'currentapp' => 'login', 'currentapp' => 'login',
'noheader' => True, 'noheader' => True,
'disable_Template_class' => True 'disable_Template_class' => True
); );
include('./header.inc.php'); include('./header.inc.php');
$GLOBALS['server'] = CreateObject('phpgwapi.soap_server'); $GLOBALS['server'] = CreateObject('phpgwapi.soap_server');
/* _debug_array($GLOBALS['server']);exit; */ /* _debug_array($GLOBALS['server']);exit; */
/* include(PHPGW_API_INC . '/soaplib.soapinterop.php'); */ /* include(PHPGW_API_INC . '/soaplib.soapinterop.php'); */
/* Note: this command only available under Apache */
$headers = getallheaders(); $headers = getallheaders();
if(ereg('Basic',$headers['Authorization'])) if(ereg('Basic',$headers['Authorization']))
{ {
$tmp = $headers['Authorization']; $tmp = $headers['Authorization'];
$tmp = ereg_replace(' ','',$tmp); $tmp = str_replace(' ','',$tmp);
$tmp = ereg_replace('Basic','',$tmp); $tmp = str_replace('Basic','',$tmp);
$auth = base64_decode(trim($tmp)); $auth = base64_decode(trim($tmp));
list($sessionid,$kp3) = split(':',$auth); list($sessionid,$kp3) = split(':',$auth);

View File

@ -1,7 +1,7 @@
<?php <?php
/**************************************************************************\ /**************************************************************************\
* eGroupWare xmlrpc server * * eGroupWare xmlrpc server *
* http://www.phpgroupware.org * * http://www.egroupware.org *
* This file written by Miles Lott <milos@groupwhere.org> * * This file written by Miles Lott <milos@groupwhere.org> *
* -------------------------------------------- * * -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it * * This program is free software; you can redistribute it and/or modify it *
@ -34,8 +34,8 @@
if(ereg('Basic',$headers['Authorization'])) if(ereg('Basic',$headers['Authorization']))
{ {
$tmp = $headers['Authorization']; $tmp = $headers['Authorization'];
$tmp = ereg_replace(' ','',$tmp); $tmp = str_replace(' ','',$tmp);
$tmp = ereg_replace('Basic','',$tmp); $tmp = str_replace('Basic','',$tmp);
$auth = base64_decode(trim($tmp)); $auth = base64_decode(trim($tmp));
list($sessionid,$kp3) = split(':',$auth); list($sessionid,$kp3) = split(':',$auth);