svn path=/trunk/boinc/; revision=20404

This commit is contained in:
David Anderson 2010-02-03 17:32:25 +00:00
parent 1600c26206
commit 83353ad7f9
1 changed files with 5 additions and 4 deletions

View File

@ -26,21 +26,22 @@ $code = get_str("code");
$userid = get_int('userid'); $userid = get_int('userid');
$user = lookup_user_id($userid); $user = lookup_user_id($userid);
if (!$user) { if (!$user) {
error_page("no user"); error_page("no such user");
} }
if (salted_key($user->authenticator) != $code) { if (salted_key($user->authenticator) != $code) {
error_page("bad code"); error_page("invalid code");
} }
$result = $user->update("send_email=0"); $result = $user->update("send_email=0");
if ($result) { if ($result) {
page_head("$email removed from mailing list"); page_head("Removed from mailing list");
echo " echo "
No further emails will be sent to $user->email_addr. No further emails will be sent to $user->email_addr.
<p>
To resume getting emails, To resume getting emails,
go <a href=".URL_BASE."prefs_edit.php?subset=project>here</a> <a href=".URL_BASE."prefs_edit.php?subset=project>edit your project preferences</a>.
"; ";
page_tail(); page_tail();
} }