diff options
Diffstat (limited to 'scripts/password-hash.sh')
-rwxr-xr-x | scripts/password-hash.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/password-hash.sh b/scripts/password-hash.sh index 89893d102..74f84d264 100755 --- a/scripts/password-hash.sh +++ b/scripts/password-hash.sh @@ -83,8 +83,10 @@ while ($param = array_shift($_SERVER['argv'])) { } } -include_once('includes/password.inc'); -include_once('includes/common.inc'); +define('DRUPAL_ROOT', getcwd()); + +include_once DRUPAL_ROOT . '/includes/password.inc'; +include_once DRUPAL_ROOT . '/includes/common.inc'; foreach ($passwords as $password) { print("\npassword: $password \t\thash: ". user_hash_password($password) ."\n"); |