Issue #1416212 by pontus_nilsson: Fixed _user_mail_notify() -- options for need...
[project/drupal.git] / xmlrpc.php
index 69430d8..b202dc2 100644 (file)
@@ -1,12 +1,18 @@
 <?php
-// $Id$
 
-include_once "includes/xmlrpcs.inc";
-include_once "includes/bootstrap.inc";
-include_once "includes/common.inc";
+/**
+ * @file
+ * PHP page for handling incoming XML-RPC requests from clients.
+ */
 
-$functions = module_invoke_all("xmlrpc");
+/**
+ * Root directory of Drupal installation.
+ */
+define('DRUPAL_ROOT', getcwd());
 
-$server = new xmlrpc_server($functions);
+include_once DRUPAL_ROOT . '/includes/bootstrap.inc';
+drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
+include_once DRUPAL_ROOT . '/includes/xmlrpc.inc';
+include_once DRUPAL_ROOT . '/includes/xmlrpcs.inc';
 
-?>
+xmlrpc_server(module_invoke_all('xmlrpc'));