mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
minor formatting, add banner
This commit is contained in:
parent
189015a1d9
commit
7ea5603c67
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare API - Accounts manager shared functions *
|
||||
* phpGroupWare API - SOAP functions *
|
||||
* This file written by dietrich@ganx4.com *
|
||||
* shared functions and vars for use with soap client/server *
|
||||
* -------------------------------------------------------------------------*
|
||||
@ -57,6 +57,7 @@
|
||||
);
|
||||
|
||||
/*
|
||||
NOTE: already defined in xml_functions
|
||||
$xmlEntities = array(
|
||||
'quot' => '"',
|
||||
'amp' => '&',
|
||||
@ -74,7 +75,7 @@
|
||||
$username = trim($m2);
|
||||
$password = trim($m3);
|
||||
|
||||
list($sessionid,$kp3) = $GLOBALS['phpgw']->session->create_server($username.'@'.$server_name,$password);
|
||||
list($sessionid,$kp3) = $GLOBALS['phpgw']->session->create_server($username.'@'.$server_name,$password,'text');
|
||||
|
||||
if(!$sessionid && !$kp3)
|
||||
{
|
||||
@ -86,7 +87,7 @@
|
||||
{
|
||||
$user = $username;
|
||||
}
|
||||
$sessionid = $GLOBALS['phpgw']->session->create($user,$password);
|
||||
$sessionid = $GLOBALS['phpgw']->session->create($user,$password,'text');
|
||||
$kp3 = $GLOBALS['phpgw']->session->kp3;
|
||||
$domain = $GLOBALS['phpgw']->session->account_domain;
|
||||
}
|
||||
|
@ -1,4 +1,24 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare 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$ */
|
||||
|
||||
$server->add_to_map(
|
||||
'hello',
|
||||
array('string'),
|
||||
@ -11,19 +31,19 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoString",
|
||||
array("string"),
|
||||
array("string")
|
||||
'echoString',
|
||||
array('string'),
|
||||
array('string')
|
||||
);
|
||||
function echoString($inputString)
|
||||
{
|
||||
return CreateObject('soap.soapval',"return","string",$inputString);
|
||||
return CreateObject('soap.soapval','return','string',$inputString);
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoStringArray",
|
||||
array("array"),
|
||||
array("array")
|
||||
'echoStringArray',
|
||||
array('array'),
|
||||
array('array')
|
||||
);
|
||||
function echoStringArray($inputStringArray)
|
||||
{
|
||||
@ -31,9 +51,9 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoInteger",
|
||||
array("int"),
|
||||
array("int")
|
||||
'echoInteger',
|
||||
array('int'),
|
||||
array('int')
|
||||
);
|
||||
function echoInteger($inputInteger)
|
||||
{
|
||||
@ -41,9 +61,9 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoIntegerArray",
|
||||
array("array"),
|
||||
array("array")
|
||||
'echoIntegerArray',
|
||||
array('array'),
|
||||
array('array')
|
||||
);
|
||||
function echoIntegerArray($inputIntegerArray)
|
||||
{
|
||||
@ -51,9 +71,9 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoFloat",
|
||||
array("float"),
|
||||
array("float")
|
||||
'echoFloat',
|
||||
array('float'),
|
||||
array('float')
|
||||
);
|
||||
function echoFloat($inputFloat)
|
||||
{
|
||||
@ -61,9 +81,9 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoFloatArray",
|
||||
array("array"),
|
||||
array("array")
|
||||
'echoFloatArray',
|
||||
array('array'),
|
||||
array('array')
|
||||
);
|
||||
function echoFloatArray($inputFloatArray)
|
||||
{
|
||||
@ -71,9 +91,9 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoStruct",
|
||||
array("SOAPStruct"),
|
||||
array("SOAPStruct")
|
||||
'echoStruct',
|
||||
array('SOAPStruct'),
|
||||
array('SOAPStruct')
|
||||
);
|
||||
function echoStruct($inputStruct)
|
||||
{
|
||||
@ -81,9 +101,9 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoStructArray",
|
||||
array("array"),
|
||||
array("array")
|
||||
'echoStructArray',
|
||||
array('array'),
|
||||
array('array')
|
||||
);
|
||||
function echoStructArray($inputStructArray)
|
||||
{
|
||||
@ -91,7 +111,7 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoVoid",
|
||||
'echoVoid',
|
||||
array(),
|
||||
array()
|
||||
);
|
||||
@ -100,9 +120,9 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoBase64",
|
||||
array("base64"),
|
||||
array("base64")
|
||||
'echoBase64',
|
||||
array('base64'),
|
||||
array('base64')
|
||||
);
|
||||
function echoBase64($b_encoded)
|
||||
{
|
||||
@ -110,9 +130,9 @@
|
||||
}
|
||||
|
||||
$server->add_to_map(
|
||||
"echoDate",
|
||||
array("timeInstant"),
|
||||
array("timeInstant")
|
||||
'echoDate',
|
||||
array('timeInstant'),
|
||||
array('timeInstant')
|
||||
);
|
||||
function echoDate($timeInstant)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user