2 // $Id: RPC2.php,v 1.7 2007-02-17 14:14:27 rurban Exp $
4 * The guts of this code have been moved to lib/XmlRpcServer.php.
6 * This file is really a vestige, as now, you can direct XML-RPC
7 * request to the main wiki URL (e.g. index.php) --- it will
8 * notice that you've POSTed content-type of text/xml and
9 * fire up the XML-RPC server automatically.
12 // Intercept GET requests from confused users. Only POST is allowed here!
13 if (empty($GLOBALS['HTTP_SERVER_VARS']))
14 $GLOBALS['HTTP_SERVER_VARS'] =& $_SERVER;
15 if ($HTTP_SERVER_VARS['REQUEST_METHOD'] != "POST")
17 die('This is the address of the XML-RPC interface.' .
18 ' You must use XML-RPC calls to access information here.');
21 // Constant defined to indicate to phpwiki that it is being accessed via XML-RPC
22 define ("WIKI_XMLRPC", true);
24 // Start up the main code
25 include_once("index.php");
26 include_once("lib/main.php");
28 include_once("lib/XmlRpcServer.php");
30 $server = new XmlRpcServer;
33 // (c-file-style: "gnu")
38 // c-hanging-comment-ender-p: nil
39 // indent-tabs-mode: nil