2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2002-04-30 22:22:54 +00:00
|
|
|
|
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
|
|
|
|
2011-02-09 22:11:34 +00:00
|
|
|
check_get_args(array());
|
|
|
|
|
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 {
|
2009-03-24 21:54:12 +00:00
|
|
|
page_head(tra("Your account"));
|
2005-10-12 22:51:55 +00:00
|
|
|
}
|
2007-10-02 03:19:03 +00:00
|
|
|
|
2010-02-04 16:55:16 +00:00
|
|
|
show_account_private($user);
|
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
|
|
|
?>
|