minor formatting, add banner

This commit is contained in:
Miles Lott 2001-11-23 17:54:13 +00:00
parent 189015a1d9
commit 7ea5603c67
2 changed files with 56 additions and 35 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
/**************************************************************************\ /**************************************************************************\
* phpGroupWare API - Accounts manager shared functions * * phpGroupWare API - SOAP functions *
* This file written by dietrich@ganx4.com * * This file written by dietrich@ganx4.com *
* shared functions and vars for use with soap client/server * * shared functions and vars for use with soap client/server *
* -------------------------------------------------------------------------* * -------------------------------------------------------------------------*
@ -57,6 +57,7 @@
); );
/* /*
NOTE: already defined in xml_functions
$xmlEntities = array( $xmlEntities = array(
'quot' => '"', 'quot' => '"',
'amp' => '&', 'amp' => '&',
@ -74,7 +75,7 @@
$username = trim($m2); $username = trim($m2);
$password = trim($m3); $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) if(!$sessionid && !$kp3)
{ {
@ -86,7 +87,7 @@
{ {
$user = $username; $user = $username;
} }
$sessionid = $GLOBALS['phpgw']->session->create($user,$password); $sessionid = $GLOBALS['phpgw']->session->create($user,$password,'text');
$kp3 = $GLOBALS['phpgw']->session->kp3; $kp3 = $GLOBALS['phpgw']->session->kp3;
$domain = $GLOBALS['phpgw']->session->account_domain; $domain = $GLOBALS['phpgw']->session->account_domain;
} }

View File

@ -1,4 +1,24 @@
<?php <?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( $server->add_to_map(
'hello', 'hello',
array('string'), array('string'),
@ -11,19 +31,19 @@
} }
$server->add_to_map( $server->add_to_map(
"echoString", 'echoString',
array("string"), array('string'),
array("string") array('string')
); );
function echoString($inputString) function echoString($inputString)
{ {
return CreateObject('soap.soapval',"return","string",$inputString); return CreateObject('soap.soapval','return','string',$inputString);
} }
$server->add_to_map( $server->add_to_map(
"echoStringArray", 'echoStringArray',
array("array"), array('array'),
array("array") array('array')
); );
function echoStringArray($inputStringArray) function echoStringArray($inputStringArray)
{ {
@ -31,9 +51,9 @@
} }
$server->add_to_map( $server->add_to_map(
"echoInteger", 'echoInteger',
array("int"), array('int'),
array("int") array('int')
); );
function echoInteger($inputInteger) function echoInteger($inputInteger)
{ {
@ -41,9 +61,9 @@
} }
$server->add_to_map( $server->add_to_map(
"echoIntegerArray", 'echoIntegerArray',
array("array"), array('array'),
array("array") array('array')
); );
function echoIntegerArray($inputIntegerArray) function echoIntegerArray($inputIntegerArray)
{ {
@ -51,9 +71,9 @@
} }
$server->add_to_map( $server->add_to_map(
"echoFloat", 'echoFloat',
array("float"), array('float'),
array("float") array('float')
); );
function echoFloat($inputFloat) function echoFloat($inputFloat)
{ {
@ -61,9 +81,9 @@
} }
$server->add_to_map( $server->add_to_map(
"echoFloatArray", 'echoFloatArray',
array("array"), array('array'),
array("array") array('array')
); );
function echoFloatArray($inputFloatArray) function echoFloatArray($inputFloatArray)
{ {
@ -71,9 +91,9 @@
} }
$server->add_to_map( $server->add_to_map(
"echoStruct", 'echoStruct',
array("SOAPStruct"), array('SOAPStruct'),
array("SOAPStruct") array('SOAPStruct')
); );
function echoStruct($inputStruct) function echoStruct($inputStruct)
{ {
@ -81,9 +101,9 @@
} }
$server->add_to_map( $server->add_to_map(
"echoStructArray", 'echoStructArray',
array("array"), array('array'),
array("array") array('array')
); );
function echoStructArray($inputStructArray) function echoStructArray($inputStructArray)
{ {
@ -91,7 +111,7 @@
} }
$server->add_to_map( $server->add_to_map(
"echoVoid", 'echoVoid',
array(), array(),
array() array()
); );
@ -100,9 +120,9 @@
} }
$server->add_to_map( $server->add_to_map(
"echoBase64", 'echoBase64',
array("base64"), array('base64'),
array("base64") array('base64')
); );
function echoBase64($b_encoded) function echoBase64($b_encoded)
{ {
@ -110,9 +130,9 @@
} }
$server->add_to_map( $server->add_to_map(
"echoDate", 'echoDate',
array("timeInstant"), array('timeInstant'),
array("timeInstant") array('timeInstant')
); );
function echoDate($timeInstant) function echoDate($timeInstant)
{ {