2001-08-08 01:04:49 +02:00
|
|
|
<?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. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
2001-08-14 02:52:43 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2001-08-08 01:04:49 +02:00
|
|
|
$phpgw_info['flags'] = array(
|
|
|
|
'currentapp' => 'login',
|
|
|
|
'noheader' => True
|
|
|
|
);
|
|
|
|
|
|
|
|
include('./header.inc.php');
|
|
|
|
|
2001-08-19 03:17:35 +02:00
|
|
|
$server = CreateObject('phpgwapi.xmlrpc_server');
|
|
|
|
/* _debug_array($server);exit; */
|
2001-08-20 01:55:58 +02:00
|
|
|
//include(PHPGW_API_INC . '/xmlrpc.interop.php');
|
2001-08-08 01:04:49 +02:00
|
|
|
|
2001-08-20 01:55:58 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2001-08-19 03:17:35 +02:00
|
|
|
$server->service($HTTP_RAW_POST_DATA);
|
2001-08-08 01:04:49 +02:00
|
|
|
?>
|