]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - RPC2.php
Allow bold, italics or underlined for numbers
[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 ($_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.');
17 }
18
19 // Constant defined to indicate to phpwiki that it is being accessed via XML-RPC
20 define ("WIKI_XMLRPC", true);
21
22 // Start up the main code
23 include_once 'index.php';
24 include_once 'lib/main.php';
25
26 include_once 'lib/XmlRpcServer.php';
27
28 $server = new XmlRpcServer;
29 $server->service();
30
31 // Local Variables:
32 // mode: php
33 // tab-width: 8
34 // c-basic-offset: 4
35 // c-hanging-comment-ender-p: nil
36 // indent-tabs-mode: nil
37 // End: