diff --git a/pages/account/13.php b/pages/account/13.php index 36d33db..8490727 100644 --- a/pages/account/13.php +++ b/pages/account/13.php @@ -13,17 +13,18 @@ PARTICULAR PURPOSE. See the License for more details. */ ?> - $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)); + $user = $_SESSION['profile']; + $year = intval(substr($user['dob'], 0, 4)); + $month = intval(substr($user['dob'], 5, 2)); + $day = intval(substr($user['dob'], 8, 2)); - $body = sprintf(_("Hi %s,"),$_SESSION['_config']['user']['fname'])."\n"; + $body = sprintf(_("Hi %s,"),$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"); + sendmail($user['email'], "[CAcert.org] "._("Email Notification"), $body, "support@cacert.org", "", "", "CAcert Support"); ?>