Download | Plain Text | No Line Numbers


  1. --- html/functions.inc.php.orig 2008-07-24 16:57:13.000000000 +0200
  2. +++ html/functions.inc.php 2009-03-18 14:34:37.000000000 +0200
  3. @@ -290,8 +290,10 @@
  4.  
  5. function crypt_pw($plainpw) {
  6. global $disable_md5;
  7. - $salt = mksalt(8);
  8. - if ((CRYPT_MD5) // CRYPT_MD5 = php_global_const
  9. + $salt = mksalt(16);
  10. + if (CRYPT_SHA512) {
  11. + $salt = "\$6\$$salt\$";
  12. + } elseif ((CRYPT_MD5) // CRYPT_MD5 = php_global_const
  13. && ($disable_md5 == 0)) { // $disable_md5 = confixx_global in settings.inc.php
  14. $salt = "\$1\$$salt\$";
  15. } else { // use STD_DES
  16.