nusers = BoincUser::count("teamid=$teamid"); $team->nusers_worked = BoincUser::count("teamid=$teamid and total_credit>0"); $team->nusers_active = BoincUser::count("teamid=$teamid and expavg_credit>0.1"); $team->forum = BoincForum::lookup("parent_type=1 and category=$team->id"); $team->new_members = new_member_list($teamid); $team->admins = admin_list($teamid); $team->founder = BoincUser::lookup_id($team->userid); set_cache_data(serialize($team), $cache_args); } if (!$team) { error_page("No such team"); } display_team_page($team, $user); page_tail(true); ?>