|
|
@ -2587,6 +2587,31 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function markArticlesById($link, $ids, $cmode) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$tmp_ids = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($ids as $id) {
|
|
|
|
|
|
|
|
array_push($tmp_ids, "ref_id = '$id'");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ids_qpart = join(" OR ", $tmp_ids);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($cmode == 0) {
|
|
|
|
|
|
|
|
db_query($link, "UPDATE ttrss_user_entries SET
|
|
|
|
|
|
|
|
marked = false,last_read = NOW()
|
|
|
|
|
|
|
|
WHERE ($ids_qpart) AND owner_uid = " . $_SESSION["uid"]);
|
|
|
|
|
|
|
|
} else if ($cmode == 1) {
|
|
|
|
|
|
|
|
db_query($link, "UPDATE ttrss_user_entries SET
|
|
|
|
|
|
|
|
marked = true
|
|
|
|
|
|
|
|
WHERE ($ids_qpart) AND owner_uid = " . $_SESSION["uid"]);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
db_query($link, "UPDATE ttrss_user_entries SET
|
|
|
|
|
|
|
|
marked = NOT marked,last_read = NOW()
|
|
|
|
|
|
|
|
WHERE ($ids_qpart) AND owner_uid = " . $_SESSION["uid"]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function catchupArticlesById($link, $ids, $cmode) {
|
|
|
|
function catchupArticlesById($link, $ids, $cmode) {
|
|
|
|
|
|
|
|
|
|
|
|
$tmp_ids = array();
|
|
|
|
$tmp_ids = array();
|
|
|
|