2005-08-09 18:46:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
|
|
|
|
|
|
|
db_init();
|
2005-08-26 22:26:26 +00:00
|
|
|
|
|
|
|
$user = get_logged_in_user(false);
|
2005-08-09 18:46:53 +00:00
|
|
|
|
|
|
|
page_head("Change password");
|
|
|
|
|
2005-08-26 22:26:26 +00:00
|
|
|
echo "
|
|
|
|
<form method=post action=edit_passwd_action.php>
|
|
|
|
";
|
|
|
|
|
2005-08-09 18:46:53 +00:00
|
|
|
start_table();
|
2005-08-26 22:26:26 +00:00
|
|
|
|
|
|
|
if ($user) {
|
|
|
|
echo "
|
|
|
|
<input type=hidden name=auth value=$user->authenticator>
|
|
|
|
";
|
|
|
|
} else {
|
|
|
|
row1("You can identify yourself using either
|
|
|
|
<ul>
|
|
|
|
<li> your email address and old password
|
|
|
|
<li> your account key
|
|
|
|
</ul>
|
|
|
|
"
|
|
|
|
);
|
|
|
|
row2("Email address", "<input name=email_addr size=40>");
|
|
|
|
row2("Current password", "<input type=password name=old_passwd size=40>");
|
|
|
|
row2(
|
|
|
|
"<b>OR</b>: Account key
|
|
|
|
<br><font size=-2><a href=get_passwd.php>Get account key</a>",
|
|
|
|
"<input name=auth size=40>"
|
|
|
|
);
|
|
|
|
}
|
|
|
|
row2("New password", "<input type=password name=passwd size=40>");
|
|
|
|
row2("New password, again", "<input type=password name=passwd2 size=40>");
|
2005-08-09 18:46:53 +00:00
|
|
|
row2("", "<input type=submit value='Change password'>");
|
|
|
|
end_table();
|
|
|
|
echo "</form>\n";
|
|
|
|
page_tail();
|
|
|
|
?>
|