2006-08-19 07:04:45 +00:00
|
|
|
<?php
|
2013-04-17 14:34:18 +00:00
|
|
|
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
|
|
|
}
|
2006-01-05 15:12:40 +00:00
|
|
|
|
2013-04-17 14:34:18 +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
|
|
|
}
|