3 * The guts of this code have been moved to lib/XmlRpcServer.php.
5 * This file is really a vestige, as now, you can direct XML-RPC
6 * request to the main wiki URL (e.g. index.php) --- it will
7 * notice that you've POSTed content-type of text/xml and
8 * fire up the XML-RPC server automatically.
11 // Intercept GET requests from confused users. Only POST is allowed here!
12 if (empty($GLOBALS['HTTP_SERVER_VARS']))
13 $GLOBALS['HTTP_SERVER_VARS'] =& $_SERVER;
14 if ($_SERVER['REQUEST_METHOD'] != "POST") {
15 die('This is the address of the XML-RPC interface.' .
16 ' You must use XML-RPC calls to access information here.');
19 // Constant defined to indicate to phpwiki that it is being accessed via XML-RPC
20 define ("WIKI_XMLRPC", true);
22 // Start up the main code
23 include_once 'index.php';
24 include_once 'lib/main.php';
26 include_once 'lib/XmlRpcServer.php';
28 $server = new XmlRpcServer;
35 // c-hanging-comment-ender-p: nil
36 // indent-tabs-mode: nil