]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - RPC2.php
just strings
[SourceForge/phpwiki.git] / RPC2.php
1 <?php 
2 // $Id: RPC2.php,v 1.5 2005-01-21 11:23:58 rurban Exp $
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 // 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")  
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 // (c-file-style: "gnu")
34 // Local Variables:
35 // mode: php
36 // tab-width: 8
37 // c-basic-offset: 4
38 // c-hanging-comment-ender-p: nil
39 // indent-tabs-mode: nil
40 // End:   
41 ?>