bug #2
This commit is contained in:
parent
ea6040598d
commit
53bc3b971d
2 changed files with 44 additions and 1 deletions
|
@ -1997,6 +1997,18 @@
|
|||
unset($oldid);
|
||||
}
|
||||
|
||||
if($oldid == 43 && $_REQUEST['action'] == "updatedob")
|
||||
{
|
||||
$id = 43;
|
||||
unset($oldid);
|
||||
$day = intval($_REQUEST['day']);
|
||||
$month = intval($_REQUEST['month']);
|
||||
$year = intval($_REQUEST['year']);
|
||||
$userid = intval($_REQUEST['userid']);
|
||||
$query = "update `users` set `dob`='$year-$month-$day' where `id`='$userid'";
|
||||
mysql_query($query);
|
||||
}
|
||||
|
||||
if($oldid == 48 && $_REQUEST['domain'] == "")
|
||||
{
|
||||
$id = $oldid;
|
||||
|
|
|
@ -107,7 +107,38 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="DataTD"><?=_("Date of Birth")?>:</td>
|
||||
<td class="DataTD"><?=$row['dob']?></td>
|
||||
<td class="DataTD"><form method="post" action="account.php">
|
||||
<input type="hidden" name="oldid" value="43">
|
||||
<input type="hidden" name="action" value="updatedob">
|
||||
<input type="hidden" name="userid" value="<?=$id?>">
|
||||
<?
|
||||
$year = intval(substr($row['dob'], 0, 4));
|
||||
$month = intval(substr($row['dob'], 5, 2));
|
||||
$day = intval(substr($row['dob'], 8, 2));
|
||||
?><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";
|
||||
echo ">".ucwords(recode("utf-8..html", strftime("%B", mktime(0,0,0,$i,1,date("Y")))))."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="text" name="year" value="<?=$year?>" size="4">
|
||||
<input type="submit" value="Go"></form></nobr></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="DataTD"><?=_("Code Signing")?>:</td>
|
||||
|
|
Loading…
Reference in a new issue