Fixed "Constant already defined" notice

This commit is contained in:
Igor Scheller 2017-01-01 15:43:20 +01:00
parent b8ebd23f6d
commit 5e850171e2
2 changed files with 6 additions and 3 deletions

View File

@ -25,9 +25,9 @@ $LETZTES_AUSTRAGEN = 3;
// define('CRYPT_ALG', '$1'); // MD5
// define('CRYPT_ALG', '$2y$13'); // Blowfish
// define('CRYPT_ALG', '$5$rounds=5000'); // SHA-256
define('CRYPT_ALG', '$6$rounds=5000'); // SHA-512
// define('CRYPT_ALG', '$6$rounds=5000'); // SHA-512
define('MIN_PASSWORD_LENGTH', 8);
// define('MIN_PASSWORD_LENGTH', 8);
// Wenn Engel beim Registrieren oder in ihrem Profil eine T-Shirt Größe angeben sollen, auf true setzen:
$enable_tshirt_size = true;
@ -64,6 +64,6 @@ $config = [
'host' => "localhost",
'user' => "root",
'pw' => "",
'db' => "engelsystem"
'db' => "engelsystem"
];
?>

View File

@ -68,6 +68,9 @@ if (file_exists(realpath(__DIR__ . '/../config/config.php'))) {
require_once realpath(__DIR__ . '/../config/config.php');
}
defined('CRYPT_ALG') || define('CRYPT_ALG', '$6$rounds=5000'); // SHA-512
defined('MIN_PASSWORD_LENGTH') || define('MIN_PASSWORD_LENGTH', 8);
if ($maintenance_mode) {
echo file_get_contents(__DIR__ . '/../public/maintenance.html');
die();