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

add note plugin

This commit is contained in:
Andrew Dolgov
2011-12-21 10:58:06 +04:00
parent d4e35925e0
commit 55ad22fa55
9 changed files with 109 additions and 104 deletions

View File

@@ -693,19 +693,6 @@ class RPC extends Protected_Handler {
}
}
function setNote() {
$id = db_escape_string($_REQUEST["id"]);
$note = trim(strip_tags(db_escape_string($_REQUEST["note"])));
db_query($this->link, "UPDATE ttrss_user_entries SET note = '$note'
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
$formatted_note = format_article_note($id, $note);
print json_encode(array("note" => $formatted_note,
"raw_length" => mb_strlen($note)));
}
function genHash() {
$hash = sha1(uniqid(rand(), true));