teamid) { error_page("You need to be a member of the team to access this page."); } $team = lookup_team($user->teamid); page_head("Transfer founder position of $team->name"); $now = time(); // if founder has declined the request and the request was done more than // two months ago, allow new request; if both founder and change initiator // haven't responded for 3 months, allow new request. if ((($team->ping_user == 0) && ($team->ping_time < $now - 60 * 86400)) || ($team->ping_time < $now - 90 * 86400)) { echo "
"; } else { if ($team->ping_user) { if ($user->id == $team->ping_user) { echo "You have already requested to take over the founder position of $team->name.
"; if ($team->ping_time > $now - 60 * 86400) { echo "Team founder has been notified about your request. If he/she does not respond until ".date_str($team->ping_time + 60 * 86400)." you will be given an option to transfer team founder position.
"; } else { echo " "; } } else { $ping_user = lookup_user_id($team->ping_user); echo "Founder change has already been initiated by ". user_links($ping_user)." on ".date_str($team->ping_time)."
"; } } else { echo "Founder change has already been initiated during the last two months and is currently disabled.
"; } } echo "id."\">Return to team page"; page_tail(); ?>