name"); $row = sprintf("%s User since", $project); row2($row, time_str($user->create_time)); row2("Total credit", $user->total_credit); row2("Recent average credit", $user->expavg_credit); if ($user->teamid) { $result = mysql_query("select * from team where id = $user->teamid"); $team = mysql_fetch_object($result); row2("Team", "id>$team->name"); } else { row2("Team", "None"); } row2("Country", $user->country); row2("Hosts", "id>Click to view"); } function show_user_profile($user) { if (is_valid_email_addr($user->email_addr)) { $email_text = $user->email_addr; } else { $email_text = "Verification pending"; } row1("Account information"); row2("Name", $user->name); row2("Email address", $email_text); row2("Country", $user->country); row2("Postal code", $user->postal_code); row2("", "Edit email address"); row2("", "Edit other info"); } function show_hosts($user) { $result = mysql_query("select * from host where userid=$user->id order by rpc_time desc"); start_table(); echo "
\n"; show_host_brief($host); } echo "\n"; mysql_free_result($result); } function show_host_brief($host) { echo "