. require_once("../inc/profile.inc"); $userid = get_int('userid'); $user = BoincUser::lookup_id($userid); if (!$user) { error_page("No such user"); } if (!$user->has_profile) { error_page("No profile"); } $logged_in_user = get_logged_in_user(false); $caching = false; if (!$logged_in_user) { $caching = true; $cache_args = "userid=$userid"; start_cache(USER_PROFILE_TTL, $cache_args); } page_head("Profile: $user->name"); start_table(); echo ""; start_table(); show_profile($user, $logged_in_user); end_table(); echo ""; start_table(); row2("Account data", "View"); community_links($user); end_table(); echo ""; page_tail(); if ($caching) { end_cache(USER_PROFILE_TTL, $cache_args); } ?>