mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
removed outdated xmlrpc and soap service, it is off by default since couple of versions
This commit is contained in:
parent
edd07a9729
commit
4128514f04
@ -1,155 +0,0 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* eGroupWare API - SOAP functions *
|
||||
* This file written by dietrich@ganx4.com *
|
||||
* shared functions and vars for use with soap client/server *
|
||||
* -------------------------------------------------------------------------*
|
||||
* This library is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU Lesser General Public License as published by *
|
||||
* the Free Software Foundation; either version 2.1 of the License, *
|
||||
* or any later version. *
|
||||
* This library is distributed in the hope that it will be useful, but *
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU Lesser General Public License for more details. *
|
||||
* You should have received a copy of the GNU Lesser General Public License *
|
||||
* along with this library; if not, write to the Free Software Foundation, *
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$GLOBALS['soapTypes'] = array(
|
||||
'i4' => 1,
|
||||
'int' => 1,
|
||||
'boolean' => 1,
|
||||
'string' => 1,
|
||||
'double' => 1,
|
||||
'float' => 1,
|
||||
'dateTime' => 1,
|
||||
'timeInstant' => 1,
|
||||
'dateTime' => 1,
|
||||
'base64Binary' => 1,
|
||||
'base64' => 1,
|
||||
'array' => 2,
|
||||
'Array' => 2,
|
||||
'SOAPStruct' => 3,
|
||||
'ur-type' => 2
|
||||
);
|
||||
|
||||
while(list($key,$val) = each($GLOBALS['soapTypes']))
|
||||
{
|
||||
$GLOBALS['soapKeys'][] = $val;
|
||||
}
|
||||
|
||||
$GLOBALS['typemap'] = array(
|
||||
'http://soapinterop.org/xsd' => array('SOAPStruct'),
|
||||
'http://schemas.xmlsoap.org/soap/encoding/' => array('base64'),
|
||||
'http://www.w3.org/1999/XMLSchema' => $GLOBALS['soapKeys']
|
||||
);
|
||||
|
||||
$GLOBALS['namespaces'] = array(
|
||||
'http://schemas.xmlsoap.org/soap/envelope/' => 'SOAP-ENV',
|
||||
'http://www.w3.org/1999/XMLSchema-instance' => 'xsi',
|
||||
'http://www.w3.org/1999/XMLSchema' => 'xsd',
|
||||
'http://schemas.xmlsoap.org/soap/encoding/' => 'SOAP-ENC',
|
||||
'http://soapinterop.org/xsd' => 'si'
|
||||
);
|
||||
|
||||
/*
|
||||
NOTE: already defined in xml_functions
|
||||
$xmlEntities = array(
|
||||
'quot' => '"',
|
||||
'amp' => '&',
|
||||
'lt' => '<',
|
||||
'gt' => '>',
|
||||
'apos' => "'"
|
||||
);
|
||||
*/
|
||||
|
||||
$GLOBALS['soap_defencoding'] = 'UTF-8';
|
||||
|
||||
function system_login($m1,$m2,$m3)
|
||||
{
|
||||
$server_name = trim($m1);
|
||||
$username = trim($m2);
|
||||
$password = trim($m3);
|
||||
|
||||
list($sessionid,$kp3) = $GLOBALS['phpgw']->session->create_server($username.'@'.$server_name,$password,'text');
|
||||
|
||||
if(!$sessionid && !$kp3)
|
||||
{
|
||||
if($server_name)
|
||||
{
|
||||
$user = $username.'@'.$server_name;
|
||||
}
|
||||
else
|
||||
{
|
||||
$user = $username;
|
||||
}
|
||||
$sessionid = $GLOBALS['phpgw']->session->create($user,$password,'text');
|
||||
$kp3 = $GLOBALS['phpgw']->session->kp3;
|
||||
$domain = $GLOBALS['phpgw']->session->account_domain;
|
||||
}
|
||||
if($sessionid && $kp3)
|
||||
{
|
||||
$rtrn = array(
|
||||
CreateObject('phpgwapi.soapval','domain','string',$domain),
|
||||
CreateObject('phpgwapi.soapval','sessionid','string',$sessionid),
|
||||
CreateObject('phpgwapi.soapval','kp3','string',$kp3)
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$rtrn = array(CreateObject('phpgwapi.soapval','GOAWAY','string',$username));
|
||||
}
|
||||
return $rtrn;
|
||||
}
|
||||
|
||||
function system_logout($m1,$m2)
|
||||
{
|
||||
$sessionid = $m1;
|
||||
$kp3 = $m2;
|
||||
|
||||
$later = $GLOBALS['phpgw']->session->destroy($sessionid,$kp3);
|
||||
|
||||
if($later)
|
||||
{
|
||||
$rtrn = array(
|
||||
CreateObject('phpgwapi.soapval','GOODBYE','string','XOXO')
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$rtrn = array(
|
||||
CreateObject('phpgwapi.soapval','OOPS','string','WHAT?')
|
||||
);
|
||||
}
|
||||
return $rtrn;
|
||||
}
|
||||
|
||||
/*
|
||||
function system_listApps()
|
||||
{
|
||||
$GLOBALS['phpgw']->db->query("SELECT * FROM egw_applications WHERE app_enabled<3",__LINE__,__FILE__);
|
||||
$apps = array();
|
||||
if($GLOBALS['phpgw']->db->num_rows())
|
||||
{
|
||||
while ($GLOBALS['phpgw']->db->next_record())
|
||||
{
|
||||
$name = $GLOBALS['phpgw']->db->f('app_name');
|
||||
$title = $GLOBALS['phpgw']->db->f('app_title');
|
||||
$status = $GLOBALS['phpgw']->db->f('app_enabled');
|
||||
$version= $GLOBALS['phpgw']->db->f('app_version');
|
||||
$apps[$name] = array(
|
||||
CreateObject('phpgwapi.soapval','title','string',$title),
|
||||
CreateObject('phpgwapi.soapval','name','string',$name),
|
||||
CreateObject('phpgwapi.soapval','status','string',$status),
|
||||
CreateObject('phpgwapi.soapval','version','string',$version)
|
||||
);
|
||||
}
|
||||
}
|
||||
return $apps;
|
||||
}
|
||||
*/
|
||||
?>
|
@ -1,152 +0,0 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* eGroupWare API - SOAP functions *
|
||||
* This file written by dietrich@ganx4.com *
|
||||
* shared functions and vars for use with soap client/server *
|
||||
* ------------------------------------------------------------------------ *
|
||||
* This library is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU Lesser General Public License as published by *
|
||||
* the Free Software Foundation; either version 2.1 of the License, *
|
||||
* or any later version. *
|
||||
* This library is distributed in the hope that it will be useful, but *
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU Lesser General Public License for more details. *
|
||||
* You should have received a copy of the GNU Lesser General Public License *
|
||||
* along with this library; if not, write to the Free Software Foundation, *
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'hello',
|
||||
array('string'),
|
||||
array('string')
|
||||
);
|
||||
function hello($serverid)
|
||||
{
|
||||
return CreateObject('soap.soapval','return','string',$GLOBALS['egw_info']['server']['site_title']);
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoString',
|
||||
array('string'),
|
||||
array('string')
|
||||
);
|
||||
function echoString($inputString)
|
||||
{
|
||||
return CreateObject('soap.soapval','return','string',$inputString);
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoStringArray',
|
||||
array('array'),
|
||||
array('array')
|
||||
);
|
||||
function echoStringArray($inputStringArray)
|
||||
{
|
||||
return $inputStringArray;
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoInteger',
|
||||
array('int'),
|
||||
array('int')
|
||||
);
|
||||
function echoInteger($inputInteger)
|
||||
{
|
||||
return $inputInteger;
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoIntegerArray',
|
||||
array('array'),
|
||||
array('array')
|
||||
);
|
||||
function echoIntegerArray($inputIntegerArray)
|
||||
{
|
||||
return $inputIntegerArray;
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoFloat',
|
||||
array('float'),
|
||||
array('float')
|
||||
);
|
||||
function echoFloat($inputFloat)
|
||||
{
|
||||
return $inputFloat;
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoFloatArray',
|
||||
array('array'),
|
||||
array('array')
|
||||
);
|
||||
function echoFloatArray($inputFloatArray)
|
||||
{
|
||||
return $inputFloatArray;
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoStruct',
|
||||
array('SOAPStruct'),
|
||||
array('SOAPStruct')
|
||||
);
|
||||
function echoStruct($inputStruct)
|
||||
{
|
||||
return $inputStruct;
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoStructArray',
|
||||
array('array'),
|
||||
array('array')
|
||||
);
|
||||
function echoStructArray($inputStructArray)
|
||||
{
|
||||
return $inputStructArray;
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoVoid',
|
||||
array(),
|
||||
array()
|
||||
);
|
||||
function echoVoid()
|
||||
{
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoBase64',
|
||||
array('base64'),
|
||||
array('base64')
|
||||
);
|
||||
function echoBase64($b_encoded)
|
||||
{
|
||||
return base64_encode(base64_decode($b_encoded));
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'echoDate',
|
||||
array('timeInstant'),
|
||||
array('timeInstant')
|
||||
);
|
||||
function echoDate($timeInstant)
|
||||
{
|
||||
return $timeInstant;
|
||||
}
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'system_auth',
|
||||
array('string','string','string'),
|
||||
array('array')
|
||||
);
|
||||
|
||||
$GLOBALS['server']->add_to_map(
|
||||
'system_auth_verify',
|
||||
array('string','string','string'),
|
||||
array('array')
|
||||
);
|
||||
?>
|
Loading…
Reference in New Issue
Block a user