|
Revision 1539, 2.1 kB
(checked in by renato, 10 months ago)
|
Setting prop svn:eol-style in LOTS of files.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
* XML-RPC plug-in |
|---|
| 5 |
*/ |
|---|
| 6 |
|
|---|
| 7 |
function rpc_pagesetup() { |
|---|
| 8 |
|
|---|
| 9 |
global $CFG, $metatags, $function; |
|---|
| 10 |
|
|---|
| 11 |
$add_meta = false; |
|---|
| 12 |
|
|---|
| 13 |
if (isset($_GET['weblog_name'])) { |
|---|
| 14 |
$user_id = user_info_username('ident', $_GET['weblog_name']); |
|---|
| 15 |
$add_meta = true; |
|---|
| 16 |
} else if (isset($_GET['profile_name'])) { |
|---|
| 17 |
$user_id = user_info_username('ident', $_GET['profile_name']); |
|---|
| 18 |
$add_meta = true; |
|---|
| 19 |
} |
|---|
| 20 |
|
|---|
| 21 |
if ($add_meta) { |
|---|
| 22 |
$metatags .= "\n<link rel=\"EditURI\" type=\"application/rsd+xml\" title=\"RSD\" href=\"" . url . "mod/rpc/rsd.php?user_id=".$user_id."\" />\n"; |
|---|
| 23 |
} |
|---|
| 24 |
} |
|---|
| 25 |
|
|---|
| 26 |
function rpc_init() { |
|---|
| 27 |
global $RPC, $CFG, $function; |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
include ($CFG->dirroot . "mod/rpc/lib/class_rpc_config.php"); |
|---|
| 32 |
|
|---|
| 33 |
$RPC = new RpcConfig(); |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
$function['rpc:auth'][] = $CFG->dirroot . "mod/rpc/lib/function_authenticate.php"; |
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
$function['rpc:xmlrpc:server'][] = $CFG->dirroot . "mod/rpc/xmlrpc/xmlrpc_server.php"; |
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
$function['users:instance'][] = $CFG->dirroot . "mod/rpc/lib/function_load_user.php"; |
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
$function['weblogs:instance'][] = $CFG->dirroot . "mod/rpc/lib/function_load_weblog.php"; |
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
$function['posts:instance'][] = $CFG->dirroot . "mod/rpc/lib/function_load_post.php"; |
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
$function['tags:instance'][] = $CFG->dirroot . "mod/rpc/lib/function_load_tag.php"; |
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
$function['comments:instance'][] = $CFG->dirroot . "mod/rpc/lib/function_load_comment.php"; |
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
$function['folders:instance'][] = $CFG->dirroot . "mod/rpc/lib/function_load_folder.php"; |
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
$function['files:instance'][] = $CFG->dirroot . "mod/rpc/lib/function_load_file.php"; |
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 |
$function['tags:uri:object'][] = $CFG->dirroot . "mod/rpc/lib/function_taguri_object.php"; |
|---|
| 64 |
} |
|---|
| 65 |
|
|---|
| 66 |
?> |
|---|
| 67 |
|
|---|