summaryrefslogtreecommitdiff
path: root/xml-rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-22 12:26:58 +0100
committerAndrew Dolgov <[email protected]>2006-05-22 12:26:58 +0100
commita3c0ae7ca2b5293b3fe596d3ec6e427353d4ae82 (patch)
tree0edffa191797959e0c6c8808b54ac3fc21a8af79 /xml-rpc.php
parentf31673f74909949ccbff3a2059a43bffaf03ee04 (diff)
add getVersion() xml-rpc method
Diffstat (limited to 'xml-rpc.php')
-rw-r--r--xml-rpc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/xml-rpc.php b/xml-rpc.php
index 69c5f3689..113f3b764 100644
--- a/xml-rpc.php
+++ b/xml-rpc.php
@@ -23,6 +23,10 @@
pg_query("set client_encoding = 'utf-8'");
}
+ function getVersion() {
+ return new xmlrpcval(VERSION);
+ }
+
function getSubscribedFeeds($msg) {
global $link;
@@ -358,8 +362,12 @@
$setArticleUnread_sig = array(array($xmlrpcString,
$xmlrpcString, $xmlrpcString, $xmlrpcInt, $xmlrpcInt));
+ $getVersion_sig = array(array($xmlrpcString));
+
$s = new xmlrpc_server(
array(
+ "rss.getVersion" => array("function" => "getVersion",
+ "signature" => $getVersion_sig),
"rss.setArticleRead" => array("function" => "setArticleRead",
"signature" => $setArticleRead_sig),
"rss.setArticleMarked" => array("function" => "setArticleMarked",