1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-17 08:18:18 +03:00

Добавление параметров шифрования при установке fix

This commit is contained in:
chiliec 2015-02-28 12:05:01 +05:00
parent c7ef9a469b
commit a62ddb6757
2 changed files with 3 additions and 5 deletions

View file

@ -17,11 +17,6 @@ class InstallConfig
$aValues = array($mName => $mValue);
}
// добавляем дополнительные параметры для шифрования при сохранении конфига
$aValues['module.blog.encrypt'] = md5(time() . rand(0, 9999999));
$aValues['module.talk.encrypt'] = md5(time() . rand(0, 9999999));
$aValues['module.security.hash'] = md5(time() . rand(0, 9999999));
$sContent = file_get_contents(self::$sFileConfig);
foreach ($aValues as $sName => $mValue) {
$sContent = self::_writeValue($sName, $mValue, $sContent);

View file

@ -14,6 +14,9 @@ class InstallStepInstallComplete extends InstallStep
* Прописываем параметры в конфиг
*/
$aSave = array(
'module.blog.encrypt' => md5(time() . mt_rand()),
'module.talk.encrypt' => md5(time() . mt_rand()),
'module.security.hash' => md5(time() . mt_rand()),
'install_completed' => true,
);
InstallConfig::save($aSave);