summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-06 11:08:56 +0300
committerAndrew Dolgov <[email protected]>2009-02-06 11:08:56 +0300
commited22888b0d413830c3a3c511dd8d357afe489e2a (patch)
tree4fe534debda2832927d7ede6f0dc699427958f1e /modules
parent424fc145bec775d5970afac0bad56bbb8332c6eb (diff)
offline: store labels
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 711455de0..af8a94e35 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -570,6 +570,23 @@
print "</feed-categories>";
+ print "<labels>";
+
+ $result = db_query($link, "SELECT * FROM
+ ttrss_labels2 WHERE owner_uid = ".$_SESSION["uid"]);
+
+ while ($line = db_fetch_assoc($result)) {
+ print "<label
+ id=\"".$line["id"]."\"
+ fg_color=\"".$line["fg_color"]."\"
+ bg_color=\"".$line["bg_color"]."\"
+ ><![CDATA[";
+ print $line["caption"];
+ print "]]></label>";
+ }
+
+
+ print "</labels>";
}