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