pull/1/head
root 18 years ago
parent 875fb38205
commit 944a6bb784

@ -87,6 +87,15 @@
exit;
}
$row = mysql_fetch_assoc($res);
$body = sprintf(_("Hi %s,"),$_SESSION['_config']['user']['fname'])."\n";
$body .= _("You are receiving this email because you or someone else")."\n";
$body .= _("has changed the default email on your account.")."\n\n";
$body .= _("Best regards")."\n"._("CAcert.org Support!");
sendmail($_SESSION['_config']['user']['email'], "[CAcert.org] "._("Default Account Changed"), $body,
"support@cacert.org", "", "", "CAcert Support");
$_SESSION['profile']['email'] = $row['email'];
$query = "update `users` set `email`='".$row['email']."' where `id`='".$_SESSION['profile']['id']."'";
mysql_query($query);
@ -1000,6 +1009,15 @@
mysql_query("update `users` set `password`=sha1('".$_SESSION['_config']['user']['pword1']."')
where `id`='".$_SESSION['profile']['id']."'");
echo _("Your Pass Phrase has been updated and your primary email account has been notified of the change.");
$body = sprintf(_("Hi %s,"),$_SESSION['_config']['user']['fname'])."\n";
$body .= _("You are receiving this email because you or someone else")."\n";
$body .= _("has changed the password on your account.")."\n";
$body .= _("Best regards")."\n"._("CAcert.org Support!");
sendmail($_SESSION['_config']['user']['email'], "[CAcert.org] "._("Password Update Notification"), $body,
"support@cacert.org", "", "", "CAcert Support");
}
}
showfooter();

@ -1,5 +1,5 @@
<? /*
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
Copyright (C) 2004-2006 by Duane Groth <duane_at_CAcert_dot_org>
This file is part of CAcert.
@ -16,6 +16,14 @@
$year = intval(substr($_SESSION['_config']['user']['dob'], 0, 4));
$month = intval(substr($_SESSION['_config']['user']['dob'], 5, 2));
$day = intval(substr($_SESSION['_config']['user']['dob'], 8, 2));
$body = sprintf(_("Hi %s,"),$_SESSION['_config']['user']['fname'])."\n";
$body .= _("You are receiving this email because you or someone else")."\n";
$body .= _("has viewed your lost password questions.")."\n";
$body .= _("Best regards")."\n"._("CAcert.org Support!");
sendmail($_SESSION['_config']['user']['email'], "[CAcert.org] "._("Email Notification"), $body, "support@cacert.org", "", "", "CAcert Support");
?>
<form method="post" action="account.php">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="400">

Loading…
Cancel
Save