2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
2002-08-13 22:35:12 +00:00
|
|
|
require_once("db.inc");
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("login.inc");
|
|
|
|
require_once("prefs.inc");
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-08-13 22:35:12 +00:00
|
|
|
db_init();
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-08-13 22:35:12 +00:00
|
|
|
$user = get_user_from_cookie();
|
|
|
|
if ($user) {
|
|
|
|
page_head("Preferences");
|
2002-09-27 06:12:50 +00:00
|
|
|
$prefs = prefs_parse($user->global_prefs);
|
2002-08-13 22:35:12 +00:00
|
|
|
print_prefs_display($prefs);
|
|
|
|
} else {
|
|
|
|
print_login_form();
|
|
|
|
}
|
|
|
|
echo "<p>\n";
|
|
|
|
page_tail();
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
?>
|