2003-07-11 22:33:59 +00:00
|
|
|
<?php
|
|
|
|
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once("../inc/profile.inc");
|
2003-07-11 22:33:59 +00:00
|
|
|
|
2005-02-19 08:06:53 +00:00
|
|
|
$userid = get_int('userid');
|
2008-01-01 22:29:10 +00:00
|
|
|
$user = BoincUser::lookup_id($userid);
|
|
|
|
if (!$user) {
|
|
|
|
error_page("No such user");
|
|
|
|
}
|
|
|
|
|
|
|
|
$logged_in_user = get_logged_in_user(false);
|
|
|
|
$caching = false;
|
2008-04-21 14:04:01 +00:00
|
|
|
if (!$logged_in_user) {
|
2008-01-01 22:29:10 +00:00
|
|
|
$caching = true;
|
|
|
|
$cache_args = "userid=$userid";
|
2008-04-24 16:16:36 +00:00
|
|
|
start_cache(USER_PROFILE_TTL, $cache_args);
|
2008-01-01 22:29:10 +00:00
|
|
|
}
|
|
|
|
page_head("Profile: $user->name");
|
|
|
|
start_table();
|
|
|
|
echo "<tr><td valign=top>";
|
|
|
|
start_table();
|
|
|
|
show_profile($user, $logged_in_user);
|
|
|
|
end_table();
|
|
|
|
echo "</td><td valign=top>";
|
|
|
|
start_table();
|
|
|
|
row2("Account data", "<a href=show_user.php?userid=$userid>View</a>");
|
|
|
|
community_links($user);
|
|
|
|
end_table();
|
|
|
|
echo "</td></tr></table>";
|
2003-07-11 22:33:59 +00:00
|
|
|
|
2008-01-01 22:29:10 +00:00
|
|
|
page_tail();
|
2004-12-20 18:29:15 +00:00
|
|
|
|
2008-01-01 22:29:10 +00:00
|
|
|
if ($caching) {
|
|
|
|
end_cache(USER_PROFILE_TTL, $cache_args);
|
2003-07-11 22:33:59 +00:00
|
|
|
}
|
2003-08-02 00:47:27 +00:00
|
|
|
|
2003-07-15 22:29:39 +00:00
|
|
|
?>
|