if ($xml) { $creditonly = get_int('creditonly', true); xml_header(); $retval = db_init_xml(); if ($retval) { xml_error($retval); } $teamid = get_int("teamid"); $team = BoincTeam::lookup_id($teamid); if (!$team) { xml_error(ERR_DB_NOT_FOUND); } echo "<users>\n"; $users = BoincUser::enum_fields("id, email_addr, send_email, name, total_credit, expavg_credit, expavg_time, has_profile, donated, country, cross_project_id, create_time, url", "teamid={$team->id}"); foreach ($users as $user) { show_team_member($user, $creditonly); } echo "</users>\n"; exit; } $user = get_logged_in_user(); $teamid = get_int("teamid"); $plain = get_int("plain", true); $team = BoincTeam::lookup_id($teamid); if (!$team) { error_page(tra("no such team")); } require_founder_login($user, $team); if ($plain) { header("Content-type: text/plain"); } else {
if ($retval) { xml_error($retval); } $teamid = get_int("teamid"); $team = BoincTeam::lookup_id($teamid); if (!$team) { xml_error(ERR_DB_NOT_FOUND); } $account_key = get_str('account_key', true); $user = BoincUser::lookup_auth($account_key); $show_email = $user && is_team_founder($user, $team); echo "<users>\n"; $users = BoincUser::enum_fields("id, email_addr, send_email, name, total_credit, expavg_credit, expavg_time, has_profile, donated, country, cross_project_id, create_time, url", "teamid={$team->id}"); //$users = BoincUser::enum("teamid=$team->id"); foreach ($users as $user) { show_team_member($user, $show_email, $creditonly); } echo "</users>\n"; exit; } $user = get_logged_in_user(); $teamid = get_int("teamid"); $plain = get_int("plain", true); $team = BoincTeam::lookup_id($teamid); if (!$team) { error_page(tra("no such team")); } require_founder_login($user, $team); if ($plain) { header("Content-type: text/plain"); } else {
if ($retval) { xml_error($retval); } $teamid = get_int("teamid"); $team = BoincTeam::lookup_id($teamid); if (!$team) { xml_error(-136); } $account_key = get_str('account_key', true); $user = lookup_user_auth($account_key); $show_email = $user && is_team_founder($user, $team); echo "<users>\n"; $users = BoincUser::enum_fields("id, email_addr, send_email, name, total_credit, expavg_credit, has_profile, donated, country, cross_project_id, create_time, url", "teamid={$team->id}"); //$users = BoincUser::enum("teamid=$team->id"); foreach ($users as $user) { show_team_member($user, $show_email); } echo "</users>\n"; exit; } $user = get_logged_in_user(); $teamid = get_int("teamid"); $plain = get_int("plain", true); $team = BoincTeam::lookup_id($teamid); if (!$team) { error_page("no such team"); } require_founder_login($user, $team); if ($plain) { header("Content-type: text/plain"); } else {