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