2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
|
|
|
|
2005-10-12 22:51:55 +00:00
|
|
|
require_once("../inc/util.inc");
|
|
|
|
require_once("../inc/user.inc");
|
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/forum.inc");
|
2002-11-08 17:21:45 +00:00
|
|
|
|
2005-10-12 22:51:55 +00:00
|
|
|
// show the home page of whoever's logged in
|
|
|
|
|
|
|
|
db_init();
|
|
|
|
$user = get_logged_in_user();
|
|
|
|
$user = getForumPreferences($user);
|
2006-12-29 19:01:03 +00:00
|
|
|
$user = get_other_projects($user);
|
2005-10-12 22:51:55 +00:00
|
|
|
|
2007-10-02 03:19:03 +00:00
|
|
|
$init = isset($_COOKIE['init']);
|
|
|
|
$via_web = isset($_COOKIE['via_web']);
|
|
|
|
|
|
|
|
if ($init) {
|
|
|
|
setcookie('init', '', time()-3600);
|
|
|
|
page_head("Welcome to ".PROJECT);
|
2005-10-12 22:51:55 +00:00
|
|
|
echo "
|
|
|
|
<p>
|
|
|
|
View and edit your account preferences using the links below.
|
|
|
|
";
|
2007-10-02 03:19:03 +00:00
|
|
|
if ($via_web) {
|
|
|
|
setcookie('via_web', '', time()-3600);
|
|
|
|
echo "
|
|
|
|
<p> If you have not already done so,
|
|
|
|
<a href=http://boinc.berkeley.edu/download.php>download BOINC client software</a>.
|
|
|
|
";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
page_head("Your account");
|
2005-10-12 22:51:55 +00:00
|
|
|
}
|
2007-10-02 03:19:03 +00:00
|
|
|
|
2005-10-12 22:51:55 +00:00
|
|
|
echo "<p>\n";
|
|
|
|
|
|
|
|
show_user_page_private($user);
|
2006-12-29 19:01:03 +00:00
|
|
|
show_other_projects($user, true);
|
2005-10-12 22:51:55 +00:00
|
|
|
project_user_page_private($user);
|
|
|
|
|
|
|
|
page_tail();
|
2005-03-04 10:09:25 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
?>
|