1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 06:31:57 +00:00

add article prefetching, remove history tracking

This commit is contained in:
Andrew Dolgov
2007-05-15 06:03:35 +01:00
parent 465ff90b4a
commit e097e8be75
6 changed files with 222 additions and 24 deletions

View File

@@ -2811,6 +2811,23 @@
}
}
function catchupArticleById($link, $id, $cmode) {
if ($cmode == 0) {
db_query($link, "UPDATE ttrss_user_entries SET
unread = false,last_read = NOW()
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
} else if ($cmode == 1) {
db_query($link, "UPDATE ttrss_user_entries SET
unread = true
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
} else {
db_query($link, "UPDATE ttrss_user_entries SET
unread = NOT unread,last_read = NOW()
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
}
}
function escape_for_form($s) {
return htmlspecialchars(db_unescape_string($s));
}