2002-05-29 23:25:21 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once("db.inc");
|
|
|
|
include_once("util.inc");
|
|
|
|
include_once("login.inc");
|
|
|
|
include_once("prefs.inc");
|
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
|
|
|
$user = get_user_from_cookie();
|
|
|
|
if ($user == NULL) {
|
|
|
|
print_login_form();
|
|
|
|
} else {
|
2002-09-27 06:12:50 +00:00
|
|
|
page_head("Preferences");
|
2002-05-29 23:25:21 +00:00
|
|
|
$prefs = prefs_parse($user->prefs);
|
2002-09-27 06:12:50 +00:00
|
|
|
prefs_global_parse_form($prefs);
|
2002-09-27 17:42:30 +00:00
|
|
|
global_prefs_update($user, $prefs);
|
2002-09-27 06:12:50 +00:00
|
|
|
echo "<table width=780><tr><td>";
|
|
|
|
echo "</td></tr></table>";
|
2002-09-27 17:42:30 +00:00
|
|
|
print_prefs_display($user);
|
2002-05-29 23:25:21 +00:00
|
|
|
}
|
2002-08-05 23:20:57 +00:00
|
|
|
echo "<p>\n";
|
|
|
|
page_tail();
|
2002-05-29 23:25:21 +00:00
|
|
|
|
|
|
|
?>
|