2004-10-16 00:28:17 +00:00
|
|
|
<? /*
|
2006-08-14 05:46:33 +00:00
|
|
|
Copyright (C) 2004-2006 by Duane Groth <duane_at_CAcert_dot_org>
|
2004-10-16 00:28:17 +00:00
|
|
|
|
|
|
|
This file is part of CAcert.
|
|
|
|
|
|
|
|
CAcert has been released under the CAcert Source License
|
|
|
|
which can be found included with these source files or can
|
|
|
|
be downloaded from the internet from the following address:
|
|
|
|
http://www.cacert.org/src-lic.php
|
|
|
|
|
|
|
|
CAcert is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
|
PARTICULAR PURPOSE. See the License for more details.
|
|
|
|
*/ ?>
|
|
|
|
<?
|
2006-08-16 03:33:47 +00:00
|
|
|
$user = $_SESSION['profile'];
|
|
|
|
$year = intval(substr($user['dob'], 0, 4));
|
|
|
|
$month = intval(substr($user['dob'], 5, 2));
|
|
|
|
$day = intval(substr($user['dob'], 8, 2));
|
2006-08-14 05:46:33 +00:00
|
|
|
|
2006-08-16 03:33:47 +00:00
|
|
|
$body = sprintf(_("Hi %s,"),$user['fname'])."\n";
|
2006-08-14 05:46:33 +00:00
|
|
|
$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!");
|
|
|
|
|
2006-08-16 03:33:47 +00:00
|
|
|
sendmail($user['email'], "[CAcert.org] "._("Email Notification"), $body, "support@cacert.org", "", "", "CAcert Support");
|
2004-10-16 00:28:17 +00:00
|
|
|
?>
|
|
|
|
<form method="post" action="account.php">
|
|
|
|
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="400">
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="title"><?=_("My Details")?></td>
|
|
|
|
</tr>
|
2005-07-24 13:56:10 +00:00
|
|
|
<? if($_SESSION['profile']['points'] == 0) { ?>
|
2004-10-16 00:28:17 +00:00
|
|
|
<tr>
|
|
|
|
<td class="DataTD" width="125"><?=_("First Name")?>: </td>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD" width="125"><input type="text" name="fname" value="<?=$user['fname']?>"></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD" valign="top"><?=_("Middle Name(s)")?><br>
|
|
|
|
(<?=_("optional")?>)
|
|
|
|
</td>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD"><input type="text" name="mname" value="<?=$user['mname']?>"></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD"><?=_("Last Name")?>: </td>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD"><input type="text" name="lname" value="<?=$user['lname']?>"></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD"><?=_("Suffix")?><br>
|
|
|
|
(<?=_("optional")?>)</td>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD"><input type="text" name="suffix" value="<?=$user['suffix']?>"></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD"><?=_("Date of Birth")?><br>
|
|
|
|
(<?=_("dd/mm/yyyy")?>)</td>
|
|
|
|
<td class="DataTD"><nobr><select name="day">
|
|
|
|
<?
|
|
|
|
for($i = 1; $i <= 31; $i++)
|
|
|
|
{
|
|
|
|
echo "<option";
|
|
|
|
if($day == $i)
|
|
|
|
echo " selected";
|
|
|
|
echo ">$i</option>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
<select name="month">
|
|
|
|
<?
|
|
|
|
for($i = 1; $i <= 12; $i++)
|
|
|
|
{
|
|
|
|
echo "<option value='$i'";
|
|
|
|
if($month == $i)
|
|
|
|
echo " selected";
|
2005-07-01 13:12:14 +00:00
|
|
|
echo ">".ucwords(recode("utf-8..html", strftime("%B", mktime(0,0,0,$i,1,date("Y")))))."</option>";
|
2004-10-16 00:28:17 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
<input type="text" name="year" value="<?=$year?>" size="4"></nobr>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2005-01-03 01:03:03 +00:00
|
|
|
<? } else { ?>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD" width="125"><?=_("First Name")?>: </td>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD" width="125"><?=$user['fname']?></td>
|
2005-01-03 01:03:03 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD" valign="top"><?=_("Middle Name(s)")?><br>
|
|
|
|
(<?=_("optional")?>)
|
|
|
|
</td>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD"><?=$user['mname']?></td>
|
2005-01-03 01:03:03 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD"><?=_("Last Name")?>: </td>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD"><?=$user['lname']?></td>
|
2005-01-03 01:03:03 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD"><?=_("Suffix")?><br>
|
|
|
|
(<?=_("optional")?>)</td>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD"><?=$user['suffix']?></td>
|
2005-01-03 01:03:03 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD"><?=_("Date of Birth")?><br>
|
|
|
|
(<?=_("dd/mm/yyyy")?>)</td>
|
2005-07-01 13:12:14 +00:00
|
|
|
<td class="DataTD"><?=$day?> <?=ucwords(recode("utf-8..html", strftime("%B", mktime(0,0,0,$month,1,1))))?> <?=$year?></td>
|
2005-01-03 01:03:03 +00:00
|
|
|
</tr>
|
2004-10-16 00:28:17 +00:00
|
|
|
<? } ?>
|
2007-02-07 15:44:53 +00:00
|
|
|
<tr>
|
|
|
|
<td class="DataTD"><?=_("OTP Hash")?><br>
|
|
|
|
(<?=_("Not displayed")?>)</td>
|
|
|
|
<td class="DataTD"><input type="text" name="otphash"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD"><?=_("OTP PIN")?><br>
|
|
|
|
(<?=_("Not displayed")?>)</td>
|
|
|
|
<td class="DataTD"><input type="text" name="otppin"></td>
|
|
|
|
</tr>
|
2004-10-16 00:28:17 +00:00
|
|
|
<tr>
|
|
|
|
<td class="DataTD" colspan="2"><?=_("Lost Pass Phrase Questions")?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD">1) <input type="text" name="Q1" size="15" value="<?=$user['Q1']?>"></td>
|
|
|
|
<td class="DataTD"><input type="text" name="A1" value="<?=$user['A1']?>"></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD">2) <input type="text" name="Q2" size="15" value="<?=$user['Q2']?>"></td>
|
|
|
|
<td class="DataTD"><input type="text" name="A2" value="<?=$user['A2']?>"></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD">3) <input type="text" name="Q3" size="15" value="<?=$user['Q3']?>"></td>
|
|
|
|
<td class="DataTD"><input type="text" name="A3" value="<?=$user['A3']?>"></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD">4) <input type="text" name="Q4" size="15" value="<?=$user['Q4']?>"></td>
|
|
|
|
<td class="DataTD"><input type="text" name="A4" value="<?=$user['A4']?>"></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-08-16 03:33:47 +00:00
|
|
|
<td class="DataTD">5) <input type="text" name="Q5" size="15" value="<?=$user['Q5']?>"></td>
|
|
|
|
<td class="DataTD"><input type="text" name="A5" value="<?=$user['A5']?>"></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Update")?>"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<input type="hidden" name="oldid" value="<?=$id?>">
|
|
|
|
</form>
|