Project

General

Profile

« Previous | Next » 

Revision 1930

Added by darkviper about 11 years ago

implement class Password and activate it (not implemented for use yet)

View differences:

upgrade-script.php
577 577

  
578 578
    $aDebugMessage[] = (db_update_key_value( 'settings', $cfg ) ? " $OK<br />" : " $FAIL!<br />");
579 579

  
580
	/**********************************************************
581
	 *  - Adding password settings to settings table
582
	 */
583
	$aDebugMessage[] = "<span>Adding/updating password settings to settings table</span>";
584
	$cfg = array();
585
	$cfg['password_crypt_loops'] = (defined('PASSWORD_CRYPT_LOOPS') ? PASSWORD_CRYPT_LOOPS : '12');
586
	$cfg['password_hash_type'] = (defined('PASSWORD_HASH_TYPES') ? PASSWORD_HASH_TYPES : 'false');
587
	$cfg['password_length'] = (defined('PASSWORD_LENGTH') ? PASSWORD_LENGTH : '10');
588
	$cfg['password_use_types'] = (defined('PASSWORD_USE_TYPES') ? PASSWORD_USE_TYPES : (int)0xFFFF);
589
    $aDebugMessage[] = (db_update_key_value( 'settings', $cfg ) ? " $OK<br />" : " $FAIL!<br />");
590

  
580 591
if($bDebugModus) {
581 592
    echo implode(PHP_EOL,$aDebugMessage);
582 593
}

Also available in: Unified diff