teamid); if (!$team) { error_page("You need to be a member of a team to access this page."); } page_head("Request foundership of $team->name"); $now = time(); if ($user->id == $team->ping_user) { echo "

You requested the foundership of $team->name on ".date_str($team->ping_time).". "; if (transfer_ok($team, $now)) { echo " 60 days have elapsed since your request, and the founder has not responded. You may now assume foundership by clicking here:

"; } else { echo "

The founder was notified of your request. If he/she does not respond by ".date_str(transfer_ok_time($team))." you will be given an option to become founder. "; } } else { if (new_transfer_request_ok($team, $now)) { echo "

"; echo "

If the team founder is not active and you want to assume the role of founder, click the button below. The current founder will be sent an email detailing your request, and will be able to transfer foundership to you or to decline your request. If the founder does not respond in 60 days, you will be allowed to become the founder.

Are you sure you want to request foundership? "; echo "

"; } else { if ($team->ping_user) { if ($team->ping_user < 0) { $team->ping_user = -$team->ping_user; } $ping_user = BoincUser::lookup_id($team->ping_user); echo "

Founder change has already been requested by ". user_links($ping_user)." on ".date_str($team->ping_time).". "; } else { echo "

A foundership change was requested during the last 90 days, so new requests are not allowed. Please try again later. "; } } } echo "

id."\">Return to team page"; page_tail(); ?>