1<?php 2// This file is part of BOINC. 3// http://boinc.berkeley.edu 4// Copyright (C) 2008 University of California 5// 6// BOINC is free software; you can redistribute it and/or modify it 7// under the terms of the GNU Lesser General Public License 8// as published by the Free Software Foundation, 9// either version 3 of the License, or (at your option) any later version. 10// 11// BOINC is distributed in the hope that it will be useful, 12// but WITHOUT ANY WARRANTY; without even the implied warranty of 13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14// See the GNU Lesser General Public License for more details. 15// 16// You should have received a copy of the GNU Lesser General Public License 17// along with BOINC. If not, see <http://www.gnu.org/licenses/>. 18 19require_once("../inc/util.inc"); 20require_once("../inc/user.inc"); 21require_once("../inc/boinc_db.inc"); 22require_once("../inc/forum.inc"); 23 24check_get_args(array()); 25 26// show the home page of logged-in user 27 28$user = get_logged_in_user(); 29BoincForumPrefs::lookup($user); 30$user = get_other_projects($user); 31 32$init = isset($_COOKIE['init']); 33$via_web = isset($_COOKIE['via_web']); 34if ($via_web) { 35 clear_cookie('via_web'); 36} 37 38$cache_control_extra = "no-store,"; 39 40if ($init) { 41 clear_cookie('init'); 42 page_head(tra("Welcome to %1", PROJECT)); 43 echo "<p>".tra("View and edit your account preferences using the links below.")."</p>\n"; 44 if ($via_web) { 45 echo "<p> " 46 .tra("If you have not already done so, %1download BOINC client software%2.", "<a href=\"https://boinc.berkeley.edu/download.php\">", "</a>")."</p>"; 47 } 48} else { 49 page_head(tra("Your account")); 50} 51 52show_account_private($user); 53 54page_tail(); 55 56?> 57