1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-07 01:59:15 +00:00

implement sequence numbers for counter rpc requests

This commit is contained in:
Andrew Dolgov
2010-11-11 22:59:01 +03:00
parent 08e49bb91d
commit 6237ea0537
3 changed files with 28 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
function handle_rpc_request($link) {
$subop = $_REQUEST["subop"];
$seq = (int) $_REQUEST["seq"];
if ($subop == "setprofile") {
$id = db_escape_string($_REQUEST["id"]);
@@ -285,6 +286,9 @@
print "<rpc-reply>";
if ($seq)
print "<seq>$seq</seq>";
if ($last_article_id != getLastArticleId($link)) {
print "<counters><![CDATA[";
$omode = $_REQUEST["omode"];