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 ($HTTP_SERVER_VARS['REQUEST_METHOD'] != "POST")
16 die('This is the address of the XML-RPC interface.' .
17 ' You must use XML-RPC calls to access information here.');
20 // Constant defined to indicate to phpwiki that it is being accessed via XML-RPC
21 define ("WIKI_XMLRPC", true);
23 // Start up the main code
24 include_once 'index.php';
25 include_once 'lib/main.php';
27 include_once 'lib/XmlRpcServer.php';
29 $server = new XmlRpcServer;
36 // c-hanging-comment-ender-p: nil
37 // indent-tabs-mode: nil