2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("user.inc");
|
|
|
|
require_once("db.inc");
|
|
|
|
require_once("login.inc");
|
|
|
|
|
2002-09-05 22:19:23 +00:00
|
|
|
db_init();
|
2002-04-30 22:22:54 +00:00
|
|
|
$user = get_user_from_cookie();
|
|
|
|
if ($user) {
|
2002-08-13 23:59:34 +00:00
|
|
|
$head = sprintf("%s's User Page", $user->name);
|
2002-08-12 22:16:34 +00:00
|
|
|
page_head($head);
|
2002-09-05 22:19:23 +00:00
|
|
|
show_user_page($user, PROJECT);
|
2002-04-30 22:22:54 +00:00
|
|
|
} else {
|
2002-08-13 23:59:34 +00:00
|
|
|
page_head("Log in");
|
2002-04-30 22:22:54 +00:00
|
|
|
print_login_form();
|
|
|
|
}
|
2002-08-05 23:20:57 +00:00
|
|
|
page_tail();
|
2002-04-30 22:22:54 +00:00
|
|
|
?>
|