|
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 |
|
|---|
| 13 |
require_once "../../includes.php"; |
|---|
| 14 |
|
|---|
| 15 |
global $CFG; |
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 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 |
|
|---|
| 28 |
include $CFG->dirroot . "mod/rpc/xmlrpc/handlers_blogger_xmlrpc.php"; |
|---|
| 29 |
|
|---|
| 30 |
include $CFG->dirroot . "mod/rpc/xmlrpc/handlers_mt_xmlrpc.php"; |
|---|
| 31 |
|
|---|
| 32 |
include $CFG->dirroot . "mod/rpc/xmlrpc/handlers_livejournal_xmlrpc.php"; |
|---|
| 33 |
|
|---|
| 34 |
include $CFG->dirroot . "mod/rpc/xmlrpc/handlers_elgg_user.php"; |
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
run('rpc:xmlrpc:server'); |
|---|
| 38 |
|
|---|
| 39 |
?> |
|---|
| 40 |
|
|---|