. // Let the founder assign foundership to someone else, // or decline a foundership change request require_once("../inc/util.inc"); require_once("../inc/team.inc"); require_once("../inc/boinc_db.inc"); check_get_args(array("teamid")); $user = get_logged_in_user(); $teamid = get_int("teamid"); $team = BoincTeam::lookup_id($teamid); if (!$team) { error_page(tra("no such team")); } require_founder_login($user, $team); page_head(tra("Change founder of %1", $team->name)); if ($team->ping_user != 0) { if ($team->ping_user < 0) { $ping_user = BoincUser::lookup_id(-$team->ping_user); $x = date_str($team->ping_time); echo "
".tra("Team member %1 requested this team's foundership on %2, but left the team, thus canceling the request.", user_links($ping_user), $x) ."
"; $team->update("ping_user=0, ping_time=0"); } else { $ping_user = BoincUser::lookup_id($team->ping_user); $x = date_str(transfer_ok_time($team)); echo "".tra("Team member %1 has requested this team's foundership. This may be because you left the team or haven't had contact with the team for a long time.", user_links($ping_user)) ."
"; echo "
".tra("If you don't decline the request by %1, %2 will have the option of assuming team foundership.
To accept the request, assign foundership to %3 using the form below.", $x, $ping_user->name, $ping_user->name)."
";
}
} else {
echo tra("No transfer request is pending.")."
";
}
echo tra("To assign foundership of this team to another member, check the box next to member name and click Change founder below.")
."