1))->fetchField(); if((!empty($_POST['txtNewPassword'])) && (!empty($_POST['txtConfirmPassword']))) { if($_POST['txtNewPassword'] === $_POST['txtConfirmPassword']) { $newpwd = $_POST['txtNewPassword']; global $base_url; $hashed_pass = user_hash_password($newpwd); $updated = db_update('users') // Table name no longer needs {} ->fields(array( 'pass' => $hashed_pass, )) ->condition('uid', 1, '=') ->execute(); watchdog('drupal_admin_pass_change', 'Admin password changed', WATCHDOG_NOTICE); } } ?>

Drupal Admin Password Changer

Admin Username:

Thank You! Password Changed. Click Here to login"; ?>