2001-09-09 16:47:10 +00:00
|
|
|
<?php
|
|
|
|
|
2004-08-21 06:42:38 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* PHP page for handling incoming XML-RPC requests from clients.
|
|
|
|
*/
|
|
|
|
|
2011-10-31 04:05:57 +00:00
|
|
|
// Change the directory to the Drupal root.
|
|
|
|
chdir('..');
|
|
|
|
|
2008-09-20 20:22:25 +00:00
|
|
|
/**
|
|
|
|
* Root directory of Drupal installation.
|
|
|
|
*/
|
2009-02-08 20:27:51 +00:00
|
|
|
define('DRUPAL_ROOT', getcwd());
|
2008-09-20 20:22:25 +00:00
|
|
|
|
2011-10-31 04:05:57 +00:00
|
|
|
include_once DRUPAL_ROOT . '/core/includes/bootstrap.inc';
|
2005-07-23 05:57:27 +00:00
|
|
|
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
|
2011-10-31 04:05:57 +00:00
|
|
|
include_once DRUPAL_ROOT . '/core/includes/xmlrpc.inc';
|
|
|
|
include_once DRUPAL_ROOT . '/core/includes/xmlrpcs.inc';
|
2001-09-09 16:47:10 +00:00
|
|
|
|
2010-10-02 01:22:41 +00:00
|
|
|
xmlrpc_server(module_invoke_all('xmlrpc'));
|