|
|
|
@ -23,7 +23,8 @@
|
|
|
|
|
$year = intval(substr($user['dob'], 0, 4));
|
|
|
|
|
$month = intval(substr($user['dob'], 5, 2));
|
|
|
|
|
$day = intval(substr($user['dob'], 8, 2));
|
|
|
|
|
|
|
|
|
|
$showdetails = array_key_exists('showdetails', $_REQUEST) && !!intval($_REQUEST['showdetails']);
|
|
|
|
|
if($showdetails){
|
|
|
|
|
$body = sprintf(_("Hi %s,"),$user['fname'])."\n\n";
|
|
|
|
|
$body .= _("You receive this automatic mail since you yourself or someone ".
|
|
|
|
|
"else looked up your secret questions and answers for a forgotten ".
|
|
|
|
@ -39,7 +40,9 @@
|
|
|
|
|
$body .= _("Best regards")."\n"._("CAcert Support");
|
|
|
|
|
|
|
|
|
|
sendmail($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">
|
|
|
|
|
<tr>
|
|
|
|
@ -119,6 +122,10 @@
|
|
|
|
|
<td class="DataTD"><?=$day?> <?=ucwords(recode("utf-8..html", strftime("%B", mktime(0,0,0,$month,1,1))))?> <?=$year?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<? } ?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" class="title"><a href="account.php?id=13&showdetails=<?=!$showdetails?>"><?=_("View secret question & answers and OTP phrases")?></a></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<? if($showdetails){ ?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="DataTD"><?=_("OTP Hash")?><br>
|
|
|
|
|
(<?=_("Not displayed")?>)</td>
|
|
|
|
@ -153,6 +160,7 @@
|
|
|
|
|
<td class="DataTD"><input type="text" name="A5" value="<?=sanitizeHTML($user['A5'])?>"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<? } ?>
|
|
|
|
|
<td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Update")?>"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|