root/devel/mod/rpc/RPC2.php

Revision 1298, 1.2 kB (checked in by misja, 1 year ago)

Misja Hoebe <misja@curverider.co.uk> Move rpc to mod/

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     /*
4     *   XML-RPC entry point
5     */
6
7     // TODO include a check for a valid request
8  
9     // This can be run from walled gardens
10     define("context","external");
11         
12     // Run site includes
13     require_once "../../includes.php";
14     
15     global $CFG;
16     
17     // rpc includes
18     include_once $CFG->dirroot . "mod/rpc/lib/class_elggobject.php";
19     include_once $CFG->dirroot . "mod/rpc/lib/class_user.php";
20     include_once $CFG->dirroot . "mod/rpc/lib/class_weblog.php";
21     include_once $CFG->dirroot . "mod/rpc/lib/class_comment.php";
22     include_once $CFG->dirroot . "mod/rpc/lib/class_post.php";
23     include_once $CFG->dirroot . "mod/rpc/lib/class_tag.php";
24     include_once $CFG->dirroot . "mod/rpc/lib/class_folder.php";
25     include_once $CFG->dirroot . "mod/rpc/lib/class_file.php";
26
27     // Blogger API
28     include $CFG->dirroot . "mod/rpc/xmlrpc/handlers_blogger_xmlrpc.php";
29     // MoveableType API
30     include $CFG->dirroot . "mod/rpc/xmlrpc/handlers_mt_xmlrpc.php";
31     // LiveJournal API
32     include $CFG->dirroot . "mod/rpc/xmlrpc/handlers_livejournal_xmlrpc.php";
33     // Misc Elgg functions
34     include $CFG->dirroot . "mod/rpc/xmlrpc/handlers_elgg_user.php";
35
36     // Fire up the XML-RPC server
37     run('rpc:xmlrpc:server');
38
39 ?>
40
Note: See TracBrowser for help on using the browser.