report unread information in rss.getSubscribedFeeds, add xmlrpc/README, set output encoding of xml-rpc server to utf-8
This commit is contained in:
parent
0a17ba5eea
commit
e359d44b5e
|
@ -2,8 +2,6 @@
|
||||||
require "xmlrpc/lib/xmlrpc.inc";
|
require "xmlrpc/lib/xmlrpc.inc";
|
||||||
require "xmlrpc/lib/xmlrpcs.inc";
|
require "xmlrpc/lib/xmlrpcs.inc";
|
||||||
|
|
||||||
$xmlrpc_defencoding = "UTF8";
|
|
||||||
|
|
||||||
require_once "sanity_check.php";
|
require_once "sanity_check.php";
|
||||||
require_once "config.php";
|
require_once "config.php";
|
||||||
|
|
||||||
|
@ -46,12 +44,15 @@
|
||||||
$feeds = array();
|
$feeds = array();
|
||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
while ($line = db_fetch_assoc($result)) {
|
||||||
|
|
||||||
|
$unread = getFeedUnread($link, $line["id"]);
|
||||||
|
|
||||||
$line_struct = new xmlrpcval(
|
$line_struct = new xmlrpcval(
|
||||||
array(
|
array(
|
||||||
"feed_url" => new xmlrpcval($line["feed_url"]),
|
"feed_url" => new xmlrpcval($line["feed_url"]),
|
||||||
"title" => new xmlrpcval($line["title"]),
|
"title" => new xmlrpcval($line["title"]),
|
||||||
"id" => new xmlrpcval($line["id"], "int"),
|
"id" => new xmlrpcval($line["id"], "int"),
|
||||||
|
"unread" => new xmlrpcval($unread, "int"),
|
||||||
"last_updated" => new xmlrpcval(strtotime($line["last_updated"]), "int")
|
"last_updated" => new xmlrpcval(strtotime($line["last_updated"]), "int")
|
||||||
),
|
),
|
||||||
"struct");
|
"struct");
|
||||||
|
@ -370,6 +371,8 @@
|
||||||
"rss.getSubscribedFeeds" => array("function" => "getSubscribedFeeds",
|
"rss.getSubscribedFeeds" => array("function" => "getSubscribedFeeds",
|
||||||
"signature" => $getSubscribedFeeds_sig),
|
"signature" => $getSubscribedFeeds_sig),
|
||||||
"rss.subscribeToFeed" => array("function" => "subscribeToFeed",
|
"rss.subscribeToFeed" => array("function" => "subscribeToFeed",
|
||||||
"signature" => $subscribeToFeed_sig))
|
"signature" => $subscribeToFeed_sig)), 0
|
||||||
);
|
);
|
||||||
|
$s->response_charset_encoding = "UTF-8";
|
||||||
|
$s->service();
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
Place lib folder from xmlrpc-2.0 here like this:
|
||||||
|
|
||||||
|
lib
|
||||||
|
lib/compat
|
||||||
|
lib/compat/array_key_exists.php
|
||||||
|
lib/compat/is_a.php
|
||||||
|
lib/compat/is_scalar.php
|
||||||
|
lib/compat/var_export.php
|
||||||
|
lib/compat/version_compare.php
|
||||||
|
lib/xmlrpc.inc
|
||||||
|
lib/xmlrpcs.inc
|
Loading…
Reference in New Issue