egroupware_official/xmlrpc.php

45 lines
1.3 KiB
PHP

<?php
/**************************************************************************\
* phpGroupWare xmlrpc server *
* http://www.phpgroupware.org *
* Written by Dan Kuykendall <dan@kuykendall.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(
'currentapp' => 'login',
'noheader' => True
);
include('./header.inc.php');
$server = CreateObject('phpgwapi.xmlrpc_server');
/* _debug_array($server);exit; */
//include(PHPGW_API_INC . '/xmlrpc.interop.php');
if($PHP_AUTH_USER && $PHP_AUTH_PW)
{
if($HTTP_X_PHPGW_SERVER)
{
if(!@$phpgw->session->verify_server($PHP_AUTH_USER,$PHP_AUTH_PW))
{
exit;
}
}
else
{
if(!@$phpgw->session->verify($PHP_AUTH_USER,$PHP_AUTH_PW))
{
exit;
}
}
}
$server->service($HTTP_RAW_POST_DATA);
?>