summaryrefslogtreecommitdiff
path: root/modules/backend-rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-03-21 22:58:32 +0300
committerAndrew Dolgov <[email protected]>2009-03-21 22:58:32 +0300
commit2b38f79c86ad9199f39fa8efac1c0e89c6f3a465 (patch)
tree3297382269d09a3fbba1ad071c789bdc9708bdad /modules/backend-rpc.php
parentf6fed1b26bf60bf508aa186503566df0b64aac92 (diff)
update translations
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r--modules/backend-rpc.php29
1 files changed, 5 insertions, 24 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 8b22bf850..afcd82d3f 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -87,9 +87,8 @@
}
if ($subop == "publ") {
- $pub = $_REQUEST["pub"];
- $id = db_escape_string($_REQUEST["id"]);
- $note = trim(strip_tags(db_escape_string($_REQUEST["note"])));
+ $pub = $_GET["pub"];
+ $id = db_escape_string($_GET["id"]);
if ($pub == "1") {
$pub = "true";
@@ -97,36 +96,18 @@
$pub = "false";
}
- if ($note != 'undefined') {
- $note_qpart = "note = '$note',";
- }
-
// FIXME this needs collision testing
- $result = db_query($link, "UPDATE ttrss_user_entries SET
- $note_qpart
- published = $pub
+ $result = db_query($link, "UPDATE ttrss_user_entries SET published = $pub
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
-
- print "<rpc-reply>";
-
- print "<counters>";
+ print "<rpc-reply><counters>";
getGlobalCounters($link);
getLabelCounters($link);
if (get_pref($link, 'ENABLE_FEED_CATS')) {
getCategoryCounters($link);
}
- print "</counters>";
-
- if ($note != 'undefined') {
- $note_size = strlen($note);
- print "<note id=\"$id\" size=\"$note_size\">";
- print "<![CDATA[" . format_article_note($id, $note) . "]]>";
- print "</note>";
- }
-
- print "</rpc-reply>";
+ print "</counters></rpc-reply>";
return;
}