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

allow setting article score manually

This commit is contained in:
Andrew Dolgov
2012-10-31 14:39:26 +04:00
parent 1b4d1a6b44
commit beb6ce2761
3 changed files with 39 additions and 1 deletions

View File

@@ -763,5 +763,16 @@ class RPC extends Handler_Protected {
}
}
function setScore() {
$id = db_escape_string($_REQUEST['id']);
$score = (int)db_escape_string($_REQUEST['score']);
db_query($this->link, "UPDATE ttrss_user_entries SET
score = '$score' WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
print json_encode(array("id" => $id,
"score_pic" => theme_image($link, get_score_pic($score))));
}
}
?>