summaryrefslogtreecommitdiff
path: root/xml-rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-21 03:17:20 +0100
committerAndrew Dolgov <[email protected]>2006-05-21 03:17:20 +0100
commite359d44b5e6ea3adfaebac4dbe49611bf4829b2c (patch)
tree82c9d052f63d82544f8b3c51b03e8fd768b72fbf /xml-rpc.php
parent0a17ba5eea0ff295b009e7a30b98fbb3b8c118ff (diff)
report unread information in rss.getSubscribedFeeds, add xmlrpc/README, set output encoding of xml-rpc server to utf-8
Diffstat (limited to 'xml-rpc.php')
-rw-r--r--xml-rpc.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/xml-rpc.php b/xml-rpc.php
index fc4afeeb5..69c5f3689 100644
--- a/xml-rpc.php
+++ b/xml-rpc.php
@@ -2,8 +2,6 @@
require "xmlrpc/lib/xmlrpc.inc";
require "xmlrpc/lib/xmlrpcs.inc";
- $xmlrpc_defencoding = "UTF8";
-
require_once "sanity_check.php";
require_once "config.php";
@@ -46,12 +44,15 @@
$feeds = array();
while ($line = db_fetch_assoc($result)) {
+
+ $unread = getFeedUnread($link, $line["id"]);
$line_struct = new xmlrpcval(
array(
"feed_url" => new xmlrpcval($line["feed_url"]),
"title" => new xmlrpcval($line["title"]),
"id" => new xmlrpcval($line["id"], "int"),
+ "unread" => new xmlrpcval($unread, "int"),
"last_updated" => new xmlrpcval(strtotime($line["last_updated"]), "int")
),
"struct");
@@ -370,6 +371,8 @@
"rss.getSubscribedFeeds" => array("function" => "getSubscribedFeeds",
"signature" => $getSubscribedFeeds_sig),
"rss.subscribeToFeed" => array("function" => "subscribeToFeed",
- "signature" => $subscribeToFeed_sig))
+ "signature" => $subscribeToFeed_sig)), 0
);
+ $s->response_charset_encoding = "UTF-8";
+ $s->service();
?>