Download | Plain Text | No Line Numbers
- --- html/functions.inc.php.orig 2008-07-24 16:57:13.000000000 +0200
- +++ html/functions.inc.php 2009-03-18 14:34:37.000000000 +0200
- @@ -290,8 +290,10 @@
-
- function crypt_pw($plainpw) {
- global $disable_md5;
- - $salt = mksalt(8);
- - if ((CRYPT_MD5) // CRYPT_MD5 = php_global_const
- + $salt = mksalt(16);
- + if (CRYPT_SHA512) {
- + $salt = "\$6\$$salt\$";
- + } elseif ((CRYPT_MD5) // CRYPT_MD5 = php_global_const
- && ($disable_md5 == 0)) { // $disable_md5 = confixx_global in settings.inc.php
- $salt = "\$1\$$salt\$";
- } else { // use STD_DES
-