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");
|
2007-11-12 22:28:17 +00:00
|
|
|
require_once("../inc/boinc_db.inc");
|
2005-10-12 22:51:55 +00:00
|
|
|
require_once("../inc/forum.inc");
|
2002-11-08 17:21:45 +00:00
|
|
|
|
2007-11-12 22:28:17 +00:00
|
|
|
// show the home page of logged-in user
|
2005-10-12 22:51:55 +00:00
|
|
|
|
|
|
|
$user = get_logged_in_user();
|
2007-11-12 22:28:17 +00:00
|
|
|
BoincForumPrefs::lookup($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) {
|
2008-02-13 19:02:44 +00:00
|
|
|
clear_cookie('via_web');
|
2007-10-30 19:36:27 +00:00
|
|
|
}
|
2007-10-02 03:19:03 +00:00
|
|
|
|
2008-06-12 04:50:10 +00:00
|
|
|
$cache_control_extra = "no-store,";
|
|
|
|
|
2007-10-02 03:19:03 +00:00
|
|
|
if ($init) {
|
2008-02-13 19:02:44 +00:00
|
|
|
clear_cookie('init');
|
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
|
|
|
|
2008-07-18 20:59:59 +00:00
|
|
|
start_table_noborder();
|
2008-01-01 22:29:10 +00:00
|
|
|
echo "<tr><td valign=top>";
|
|
|
|
start_table();
|
|
|
|
show_user_info_private($user);
|
2008-05-15 22:05:05 +00:00
|
|
|
if (!no_computing()) {
|
|
|
|
show_user_stats_private($user);
|
|
|
|
}
|
2008-01-01 22:29:10 +00:00
|
|
|
|
|
|
|
if (file_exists("../project/donations.inc")) {
|
|
|
|
require_once("../project/donations.inc");
|
2008-01-09 17:32:02 +00:00
|
|
|
if (function_exists('show_user_donations_private')) {
|
|
|
|
show_user_donations_private($user);
|
|
|
|
}
|
2008-01-01 22:29:10 +00:00
|
|
|
}
|
|
|
|
end_table();
|
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);
|
2008-01-01 22:29:10 +00:00
|
|
|
echo "</td><td valign=top>";
|
|
|
|
start_table();
|
|
|
|
show_community_private($user);
|
|
|
|
end_table();
|
|
|
|
|
|
|
|
echo "</td></tr></table>";
|
2005-10-12 22:51:55 +00:00
|
|
|
|
|
|
|
page_tail();
|
2005-03-04 10:09:25 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
?>
|