ttrss/include/db-prefs.php

10 lines
335 B
PHP
Raw Normal View History

2006-08-19 07:04:45 +00:00
<?php
2005-11-16 16:57:08 +00:00
require_once "db.php";
function get_pref($pref_name, $user_id = false, $die_on_error = false) {
2013-04-18 08:00:01 +00:00
return Db_Prefs::get()->read($pref_name, $user_id, $die_on_error);
2005-12-29 14:21:34 +00:00
}
function set_pref($pref_name, $value, $user_id = false, $strip_tags = true) {
2013-04-18 08:00:01 +00:00
return Db_Prefs::get()->write($pref_name, $value, $user_id, $strip_tags);
2017-04-26 17:24:18 +00:00
}