mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
remove last of the global calls
This commit is contained in:
parent
c3d3c14b68
commit
8943ece01f
@ -50,9 +50,7 @@
|
|||||||
|
|
||||||
function xmlrpc_server($dispMap='', $serviceNow=0)
|
function xmlrpc_server($dispMap='', $serviceNow=0)
|
||||||
{
|
{
|
||||||
global $HTTP_RAW_POST_DATA;
|
// dispMap is a dispatch array of methods
|
||||||
|
|
||||||
// dispMap is a despatch array of methods
|
|
||||||
// mapped to function names and signatures
|
// mapped to function names and signatures
|
||||||
// if a method
|
// if a method
|
||||||
// doesn't appear in the map then an unknown
|
// doesn't appear in the map then an unknown
|
||||||
@ -81,8 +79,6 @@
|
|||||||
|
|
||||||
function service($r=False)
|
function service($r=False)
|
||||||
{
|
{
|
||||||
global $HTTP_RAW_POST_DATA;
|
|
||||||
|
|
||||||
if (!$r) // do we have a response, or we need to parse the request
|
if (!$r) // do we have a response, or we need to parse the request
|
||||||
{
|
{
|
||||||
$r = $this->parseRequest();
|
$r = $this->parseRequest();
|
||||||
@ -104,11 +100,11 @@
|
|||||||
if ($this->log)
|
if ($this->log)
|
||||||
{
|
{
|
||||||
$fp = fopen($this->log,'a+');
|
$fp = fopen($this->log,'a+');
|
||||||
fwrite($fp,"\n\n".date('Y-m-d H:i:s')." authorized=".
|
fwrite($fp,"\n\n".date('Y-m-d H:i:s') . " authorized="
|
||||||
($this->authed?$GLOBALS['phpgw_info']['user']['account_lid']:'False').
|
. ($this->authed?$GLOBALS['phpgw_info']['user']['account_lid']:'False')
|
||||||
", method='$this->last_method'\n");
|
. ", method='$this->last_method'\n");
|
||||||
fwrite($fp,"==== GOT ============================\n".$HTTP_RAW_POST_DATA.
|
fwrite($fp,"==== GOT ============================\n" . $GLOBALS['HTTP_RAW_POST_DATA']
|
||||||
"\n==== RETURNED =======================\n");
|
. "\n==== RETURNED =======================\n");
|
||||||
fputs($fp,$payload);
|
fputs($fp,$payload);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
@ -256,13 +252,11 @@
|
|||||||
|
|
||||||
function parseRequest($data='')
|
function parseRequest($data='')
|
||||||
{
|
{
|
||||||
global $HTTP_RAW_POST_DATA;
|
|
||||||
|
|
||||||
$r = False;
|
$r = False;
|
||||||
|
|
||||||
if ($data == '')
|
if ($data == '')
|
||||||
{
|
{
|
||||||
$data = $HTTP_RAW_POST_DATA;
|
$data = $GLOBALS['HTTP_RAW_POST_DATA'];
|
||||||
}
|
}
|
||||||
$parser = xml_parser_create($GLOBALS['xmlrpc_defencoding']);
|
$parser = xml_parser_create($GLOBALS['xmlrpc_defencoding']);
|
||||||
|
|
||||||
@ -468,17 +462,16 @@
|
|||||||
|
|
||||||
function echoInput()
|
function echoInput()
|
||||||
{
|
{
|
||||||
global $HTTP_RAW_POST_DATA;
|
|
||||||
|
|
||||||
// a debugging routine: just echos back the input
|
// a debugging routine: just echos back the input
|
||||||
// packet as a string value
|
// packet as a string value
|
||||||
|
|
||||||
$r = CreateObject('phpgwapi.xmlrpcresp',CreateObject('phpgwapi.xmlrpcval',"'Aha said I: '" . $HTTP_RAW_POST_DATA,'string'));
|
$r = CreateObject('phpgwapi.xmlrpcresp',CreateObject('phpgwapi.xmlrpcval',"'Aha said I: '"
|
||||||
|
. $GLOBALS['HTTP_RAW_POST_DATA'],'string'));
|
||||||
//echo $r->serialize();
|
//echo $r->serialize();
|
||||||
|
|
||||||
$fp = fopen('/tmp/xmlrpc_debug.in','w');
|
$fp = fopen('/tmp/xmlrpc_debug.in','w');
|
||||||
fputs($fp,$r->serialize);
|
fputs($fp,$r->serialize);
|
||||||
fputs($fp,$HTTP_RAW_POST_DATA);
|
fputs($fp,$GLOBALS['HTTP_RAW_POST_DATA']);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user