9 include_once $CFG->dirroot
. "units/rpc/lib/class_elggobject.php";
10 include_once $CFG->dirroot
. "units/rpc/lib/class_user.php";
11 include_once $CFG->dirroot
. "units/rpc/lib/class_weblog.php";
12 include_once $CFG->dirroot
. "units/rpc/lib/class_comment.php";
13 include_once $CFG->dirroot
. "units/rpc/lib/class_post.php";
14 include_once $CFG->dirroot
. "units/rpc/lib/class_tag.php";
15 include_once $CFG->dirroot
. "units/rpc/lib/class_folder.php";
16 include_once $CFG->dirroot
. "units/rpc/lib/class_file.php";
19 // Autodiscovery editlink
20 // Add to profile and weblog section
26 if (isset($_GET['weblog_name'])) {
27 $user_id = user_info_username('ident', $_GET['weblog_name']);
29 } else if (isset($_GET['profile_name'])) {
30 $user_id = user_info_username('ident', $_GET['profile_name']);
35 $metatags .= "\n<link rel=\"EditURI\" type=\"application/rsd+xml\" title=\"RSD\" href=\"" . url
. "_rpc/rsd.php?user_id=".$user_id."\" />\n";
38 // A basic handler registry, for other plugins to register their xml-rpc calls
42 include ($CFG->dirroot
. "units/rpc/lib/class_rpc_config.php");
43 $RPC = new RpcConfig();
46 include $CFG->dirroot
. "units/rpc/xmlrpc/handlers_blogger_xmlrpc.php";
48 include $CFG->dirroot
. "units/rpc/xmlrpc/handlers_mt_xmlrpc.php";
50 include $CFG->dirroot
. "units/rpc/xmlrpc/handlers_livejournal_xmlrpc.php";
51 // Misc Elgg functions
52 include $CFG->dirroot
. "units/rpc/xmlrpc/handlers_elgg_user.php";