mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-25 20:01:28 +00:00
new option: HIDE_READ_FEEDS (+ pref setting RPC calls) (closes #23)
This commit is contained in:
14
db-prefs.php
14
db-prefs.php
@@ -57,4 +57,18 @@
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
// doesn't peform any type checking, be vigilant
|
||||
|
||||
function set_pref($link, $key, $value) {
|
||||
$key = db_escape_string($key);
|
||||
$value = db_escape_string($value);
|
||||
|
||||
db_query($link, "UPDATE ttrss_user_prefs SET
|
||||
value = '$value' WHERE pref_name = '$key'
|
||||
AND owner_uid = " . $_SESSION["uid"]);
|
||||
|
||||
$_SESSION["prefs_cache"] = array();
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user