1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 12:55:56 +00:00

add dialog to download articles for offline reading; start implementation

This commit is contained in:
Andrew Dolgov
2009-02-03 15:28:37 +03:00
parent d92d7f02ad
commit 87b16a0a61
7 changed files with 193 additions and 6 deletions

View File

@@ -514,6 +514,34 @@
return;
}
if ($subop == "download") {
$stage = (int) $_REQUEST["stage"];
print "<rpc-reply>";
if ($stage == 0) {
print "<feeds>";
$reply = array();
$result = db_query($link, "SELECT id, title FROM
ttrss_feeds WHERE owner_uid = ".$_SESSION["uid"]);
while ($line = db_fetch_assoc($result)) {
print "<feed id=\"".$line["id"]."\"><![CDATA[";
print $line["title"];
print "]]></feed>";
}
print "</feeds>";
}
print "</rpc-reply>";
return;
}
print "<rpc-reply><error>Unknown method: $subop</error></rpc-reply>";
}
?>