2 // $Id: RPC2.php,v 1.5 2005-01-21 11:23:58 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 // There is some indication that $HTTP_SERVER_VARS is deprecated in php > 4.1.0
14 // in favour of $_Server, but as far as I know, it still works.
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