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-08-12 22:16:34 +00:00
|
|
|
$project = db_init();
|
2002-04-30 22:22:54 +00:00
|
|
|
$user = get_user_from_cookie();
|
|
|
|
if ($user) {
|
2002-08-12 22:16:34 +00:00
|
|
|
$head = sprintf("%s's User Page for %s", $user->name, $project);
|
|
|
|
page_head($head);
|
|
|
|
show_user_page($user, $project);
|
2002-04-30 22:22:54 +00:00
|
|
|
} else {
|
2002-08-12 22:16:34 +00:00
|
|
|
$head = sprintf("Login to %s", $project);
|
|
|
|
page_head($head);
|
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
|
|
|
?>
|