\n"; $username = $_GET[username]; if (!empty($_POST[submit])) { $form_new_passwd1 = $_POST[form_new_passwd1]; if (empty($form_new_passwd1)) { print "

\n"; print "You will need to fill in the password field!\n"; print_footer(); exit; } $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 "

\n"; print_footer(); exit; } else { print "

\n"; print "Unable to update your password!\n"; print_footer(); exit; } } ?> Change admin password.

Login:
New Password: