mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 08:01:28 +00:00
finish initial work on scoring
This commit is contained in:
@@ -401,6 +401,19 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if ($subop == "setScore") {
|
||||
$id = db_escape_string($_REQUEST["id"]);
|
||||
$score = sprintf("%d", $_REQUEST["score"]);
|
||||
|
||||
$result = db_query($link, "UPDATE ttrss_user_entries SET score = '$score'
|
||||
WHERE ref_id = '$id' AND owner_uid = ".$_SESSION["uid"]);
|
||||
|
||||
print "<rpc-reply><message>Acknowledged.</message></rpc-reply>";
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
print "<rpc-reply><error>Unknown method: $subop</error></rpc-reply>";
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user