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']);
|
2007-10-30 19:36:27 +00:00
|
|
|
if ($via_web) {
|
|
|
|
setcookie('via_web', '', time()-3600);
|
|
|
|
}
|
2007-10-02 03:19:03 +00:00
|
|
|
|
|
|
|
if ($init) {
|
|
|
|
setcookie('init', '', time()-3600);
|
2007-10-31 03:40:15 +00:00
|
|
|
page_head(tra("Welcome to %1", PROJECT));
|
2007-10-30 19:36:27 +00:00
|
|
|
echo "<p>".tra("View and edit your account preferences using the links below.")."</p>\n";
|
2007-10-02 03:19:03 +00:00
|
|
|
if ($via_web) {
|
|
|
|
echo "
|
|
|
|
<p> If you have not already done so,
|
2007-10-30 19:36:27 +00:00
|
|
|
<a href=\"http://boinc.berkeley.edu/download.php\">download BOINC client software</a>.</p>
|
2007-10-02 03:19:03 +00:00
|
|
|
";
|
|
|
|
}
|
|
|
|
} 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
|
|
|
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
|
|
|
?>
|