diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/password-hash.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/password-hash.sh b/scripts/password-hash.sh index 12e939983..c5e26c182 100755 --- a/scripts/password-hash.sh +++ b/scripts/password-hash.sh @@ -13,10 +13,6 @@ * Plain-text passwords in quotes (or with spaces backslash escaped). */ -function variable_get($x, $default) { - return $default; -} - if (version_compare(PHP_VERSION, "5.2.0", "<")) { $version = PHP_VERSION; echo <<<EOF @@ -86,7 +82,7 @@ while ($param = array_shift($_SERVER['argv'])) { define('DRUPAL_ROOT', getcwd()); include_once DRUPAL_ROOT . '/includes/password.inc'; -include_once DRUPAL_ROOT . '/includes/common.inc'; +include_once DRUPAL_ROOT . '/includes/bootstrap.inc'; foreach ($passwords as $password) { print("\npassword: $password \t\thash: ". user_hash_password($password) ."\n"); |