}
+ function setScore() {
+ $ids = db_escape_string($this->link, $_REQUEST['id']);
+ $score = (int)db_escape_string($this->link, $_REQUEST['score']);
+
+ db_query($this->link, "UPDATE ttrss_user_entries SET
+ score = '$score' WHERE ref_id IN ($ids) AND owner_uid = " . $_SESSION["uid"]);
+
+ print json_encode(array("id" => $id,
+ "score_pic" => get_score_pic($score)));
+ }
+
}
return;
}
- function setScore() {
- $ids = db_escape_string($this->link, $_REQUEST['id']);
- $score = (int)db_escape_string($this->link, $_REQUEST['score']);
-
- db_query($this->link, "UPDATE ttrss_user_entries SET
- score = '$score' WHERE ref_id IN ($ids) AND owner_uid = " . $_SESSION["uid"]);
-
- print json_encode(array("id" => $id,
- "score_pic" => get_score_pic($score)));
- }
-
function setpanelmode() {
$wide = (int) $_REQUEST["wide"];
var score = prompt(__("Please enter new score for selected articles:"), score);
if (score != undefined) {
- var query = "op=rpc&method=setScore&id=" + param_escape(ids.toString()) +
+ var query = "op=article&method=setScore&id=" + param_escape(ids.toString()) +
"&score=" + param_escape(score);
new Ajax.Request("backend.php", {
if (new_score != undefined) {
- var query = "op=rpc&method=setScore&id=" + param_escape(id) +
+ var query = "op=article&method=setScore&id=" + param_escape(id) +
"&score=" + param_escape(new_score);
new Ajax.Request("backend.php", {