$community_links = $data->clo; } else { // No data was found, generate new data for the cache and store it $user = lookup_user_id($id); BoincForumPrefs::lookup($user); $user = @get_other_projects($user); $community_links = get_community_links_object($user); $data->user = $user; $data->clo = $community_links; set_cached_data(USER_PAGE_TTL, serialize($data), $cache_args); } if (!$user->id) { error_page("No such user"); } $logged_in_user = get_logged_in_user(false); page_head($user->name); start_table(); echo "<tr><td valign=top>"; start_table(); show_user_summary_public($user); end_table(); project_user_summary($user); show_other_projects($user, false); echo "</td><td valign=top>"; start_table(); show_profile_link($user); community_links($community_links, $logged_in_user); end_table(); echo "</td></tr></table>"; page_tail(true); }
clear_cookie('init'); page_head(tra("Welcome to %1", PROJECT)); echo "<p>" . tra("View and edit your account preferences using the links below.") . "</p>\n"; if ($via_web) { echo "\r\n\t\t\t<p> If you have not already done so,\r\n\t\t\t<a href=\"http://boinc.berkeley.edu/download.php\">download BOINC client software</a>.</p>\r\n\t\t"; } } else { page_head(tra("Your account")); } start_table("noborder"); echo "<tr><td valign=top>"; start_table(); show_user_info_private($user); if (!no_computing()) { show_user_stats_private($user); } if (file_exists("../project/donations.inc")) { require_once "../project/donations.inc"; if (function_exists('show_user_donations_private')) { show_user_donations_private($user); } } end_table(); show_other_projects($user, true); project_user_page_private($user); echo "</td><td valign=top>"; start_table(); show_community_private($user); end_table(); echo "</td></tr></table>"; page_tail();