You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?phprequire "../config.inc.php";require "../my_lib.php";
print_header("admin");
$username = $_GET['username'];
if (!empty($_POST['submit'])) { $form_new_passwd1 = $_POST['form_new_passwd1']; if (empty($form_new_passwd1)) { print_error("You will need to fill in the password field!"); } $new_passwd = md5crypt($form_new_passwd1); $result = db_query("UPDATE admin SET password='$new_passwd',change_date=NOW() WHERE username='$username'"); if ($result['rows'] == 1) { print "The password has been updated!\n"; print "<p />\n"; print_footer(); exit; } else { print_error("Unable to update your password!"); }} ?>
Change admin password.<p><form name="passwd" method="post"><table class="form"><tr><td>Login:</td><td><?php print "$username"; ?></td></tr>
<tr><td>New Password:</td><td><input type="text" name="form_new_passwd1"></td></tr><tr><td colspan="2" align="center"><input type="submit" name="submit" value="Enter"></td></tr></table></form><?phpprint_footer();?>
|