]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - RPC2.php
include [all] Include and file path should be devided with single space. File path...
[SourceForge/phpwiki.git] / RPC2.php
1 <?php
2 /*
3  * The guts of this code have been moved to lib/XmlRpcServer.php.
4  *
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.
9  */
10
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")
15 {
16     die('This is the address of the XML-RPC interface.' .
17         '  You must use XML-RPC calls to access information here.');
18 }
19
20 // Constant defined to indicate to phpwiki that it is being accessed via XML-RPC
21 define ("WIKI_XMLRPC", true);
22
23 // Start up the main code
24 include_once 'index.php';
25 include_once 'lib/main.php';
26
27 include_once 'lib/XmlRpcServer.php';
28
29 $server = new XmlRpcServer;
30 $server->service();
31
32 // Local Variables:
33 // mode: php
34 // tab-width: 8
35 // c-basic-offset: 4
36 // c-hanging-comment-ender-p: nil
37 // indent-tabs-mode: nil
38 // End: