2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
2002-08-08 20:49:09 +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
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
|
|
|
$user = get_user_from_cookie();
|
2002-08-08 20:49:09 +00:00
|
|
|
if ($user) {
|
|
|
|
page_head("Preferences");
|
2002-05-29 23:25:21 +00:00
|
|
|
$prefs = prefs_parse($user->prefs);
|
|
|
|
print_prefs_display($prefs);
|
2002-08-08 20:49:09 +00:00
|
|
|
} else {
|
|
|
|
//show_login($user);
|
|
|
|
print_login_form();
|
2002-04-30 22:22:54 +00:00
|
|
|
}
|
2002-08-05 23:20:57 +00:00
|
|
|
echo "<p>\n";
|
|
|
|
page_tail();
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
?>
|