2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("user.inc");
|
|
|
|
require_once("db.inc");
|
|
|
|
|
2002-11-08 17:21:45 +00:00
|
|
|
// show the home page of whoever's logged in
|
|
|
|
|
2002-12-04 19:14:00 +00:00
|
|
|
$authenticator = init_session();
|
2002-12-16 21:41:41 +00:00
|
|
|
|
2002-09-05 22:19:23 +00:00
|
|
|
db_init();
|
2002-12-04 19:14:00 +00:00
|
|
|
$user = get_user_from_auth($authenticator);
|
2002-04-30 22:22:54 +00:00
|
|
|
if ($user) {
|
2003-02-08 02:06:35 +00:00
|
|
|
page_head("User page", $user);
|
2002-11-08 17:21:45 +00:00
|
|
|
show_user_page_private($user);
|
|
|
|
page_tail();
|
2002-04-30 22:22:54 +00:00
|
|
|
} else {
|
2003-02-14 22:59:25 +00:00
|
|
|
print_login_form();
|
2002-04-30 22:22:54 +00:00
|
|
|
}
|
|
|
|
?>
|