boinc/html/user/home.php

19 lines
412 B
PHP
Raw Normal View History

<?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) {
$head = sprintf("%s's User Page", $user->name);
page_head($head);
show_user_page($user, PROJECT);
} else {
page_head("Log in");
print_login_form();
}
page_tail();
?>