2001-08-09 17:51:38 +02:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare - XML-RPC Test App *
|
|
|
|
* http://www.phpgroupware.org *
|
|
|
|
* -------------------------------------------- *
|
|
|
|
* 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 *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
$phpgw_info['flags'] = array(
|
|
|
|
'noheader' => True,
|
|
|
|
'nonavbar' => True,
|
|
|
|
'currentapp' => 'home',
|
|
|
|
'noapi' => True
|
|
|
|
);
|
2001-08-09 17:54:52 +02:00
|
|
|
include('./inc/functions.inc.php');
|
|
|
|
include('./inc/xml_functions.inc.php');
|
2001-08-09 17:51:38 +02:00
|
|
|
|
|
|
|
$tpl_root = $phpgw_setup->setup_tpl_dir('setup');
|
|
|
|
$setup_tpl = CreateObject('phpgwapi.Template',$tpl_root);
|
|
|
|
$setup_tpl->set_file(array('T_footer' => 'footer.tpl'));
|
|
|
|
$setup_tpl->set_block('T_footer','footer','footer');
|
|
|
|
|
2001-11-21 16:01:43 +01:00
|
|
|
$f = CreateObject('phpgwapi.xmlrpcmsg','system.listApps',array(CreateObject('phpgwapi.xmlrpcval',0,'int')));
|
|
|
|
print '<pre>' . htmlentities($f->serialize()) . "</pre>\n";
|
|
|
|
$c = CreateObject('phpgwapi.xmlrpc_client','/cvsdemo/xmlrpc.php','www.phpgroupware.org',80);
|
2001-08-09 17:51:38 +02:00
|
|
|
$c->setDebug(1);
|
|
|
|
$r = $c->send($f);
|
|
|
|
if (!$r)
|
|
|
|
{
|
|
|
|
die('send failed');
|
|
|
|
}
|
|
|
|
$v = $r->value();
|
|
|
|
if (!$r->faultCode())
|
|
|
|
{
|
|
|
|
// print "<HR>I got this value back<BR><PRE>" .
|
|
|
|
// htmlentities($r->serialize()). "</PRE><HR>\n";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
print 'Fault: ';
|
|
|
|
print 'Code: ' . $r->faultCode() . " Reason '" .$r->faultString()."'<br>";
|
|
|
|
}
|
|
|
|
|
|
|
|
$phpgw_setup->show_footer();
|
|
|
|
?>
|