mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=15399
This commit is contained in:
parent
956a5a2cc5
commit
b0aadb0e4e
|
@ -17,6 +17,22 @@ if (!$user->teamid) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function send_founder_transfer_email($team, $user) {
|
function send_founder_transfer_email($team, $user) {
|
||||||
|
$founder = lookup_user_id($team->userid);
|
||||||
|
|
||||||
|
// send founder a private message for good measure
|
||||||
|
|
||||||
|
$subject = "Team founder transfer request";
|
||||||
|
$body = "Team member ".$user->name." has asked that you
|
||||||
|
transfer foundership of $team->name.
|
||||||
|
Please go [url=".URL_BASE."team_change_founder_form.php?teamid=$team->id]here[/url] to grant or decline the request.
|
||||||
|
|
||||||
|
If you do not respond within 60 days, ".$user->name." will
|
||||||
|
be allowed to become the team founder.
|
||||||
|
";
|
||||||
|
|
||||||
|
pm_send($founder, $subject, $body);
|
||||||
|
|
||||||
|
$subject = PROJECT." team founder transfer";
|
||||||
$body = "Team member ".$user->name." has asked that you
|
$body = "Team member ".$user->name." has asked that you
|
||||||
transfer foundership of $team->name in ".PROJECT.".
|
transfer foundership of $team->name in ".PROJECT.".
|
||||||
Please visit
|
Please visit
|
||||||
|
@ -29,21 +45,6 @@ be allowed to become the team founder.
|
||||||
Please do not respond to this email.
|
Please do not respond to this email.
|
||||||
The mailbox is not monitored and the email
|
The mailbox is not monitored and the email
|
||||||
was sent using an automated system.";
|
was sent using an automated system.";
|
||||||
|
|
||||||
$subject = PROJECT." team founder transfer";
|
|
||||||
$founder = lookup_user_id($team->userid);
|
|
||||||
|
|
||||||
// send founder a private message for good measure
|
|
||||||
|
|
||||||
$body = "Team member ".$user->name." has asked that you
|
|
||||||
transfer foundership of $team->name.
|
|
||||||
Please go [url=".URL_BASE."team_change_founder_form.php?teamid=$team->id]here[/url] to grant or decline the request.
|
|
||||||
|
|
||||||
If you do not respond within 60 days, ".$user->name." will
|
|
||||||
be allowed to become the team founder.
|
|
||||||
";
|
|
||||||
|
|
||||||
pm_send($founder, $subject, $body);
|
|
||||||
return send_email($founder, $subject, $body);
|
return send_email($founder, $subject, $body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue