<?php
require_once("util.inc");
require_once("user.inc");
require_once("db.inc");
require_once("login.inc");
db_init();
$user = get_user_from_cookie();
if ($user) {
page_head("User Home");
show_user_page($user);
} else {
print_login_form();
}
page_tail();
?>