<?
include('dbconn.php');
$result = mysql_query("SELECT usrname, usrpass FROM ".$OekakiPoteto_MemberPrefix."oekaki where usrname ='$username'");
$row = mysql_fetch_array($result);
if(($row[usrpass] != $vcode) || (!isset($username) || !isset($vcode))){
header ('Location: error.php?error='.urlencode("Invalid verification code."));
exit;
}
?>
<html>
<?
include('header.php');
?>
<br>
<br>
<form name="form1" method="post" action="functions.php?action=pchange">
<table width="<?=$hWidth?>" cellpadding="2" align="center">
<tr>
<td class="header"><?=$langop_chngpass_title?></td>
</tr>
<tr>
<td><table width="95%" cellpadding="2" align="center" cellspacing="2" class="infotable">
<tr>
<td> </td>
<td><?=$langop_chngpass_disclaimer?></td>
</tr>
<tr>
<td width="5%">
<?=$langop_chngpass_newpwd?>
</td>
<td> <input name="newpass" type="password" class="txtinput" id="newpass" style="width: 100%;">
</td>
</tr>
<tr>
<td>
<?=$langop_install_password?>
</td>
<td> <input name="retype" type="password" class="txtinput" id="retype" style="width: 100%;">
</td>
</tr>
<tr>
<td> </td>
<td><input name="username" type="hidden" id="username" value="<?=$username?>">
<input name="vcode" type="hidden" id="vcode" value="<?=$vcode?>"></td>
</tr>
<tr>
<td> </td>
<td> <input type="submit" name="register" value="Submit" class="submit">
</td>
</tr>
</table></td>
</tr>
</table>
</form>
<br>
</body>
<? include('footer.php'); ?>