1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-17 16:28:19 +03:00
ifhub.club/application/install/backend/step/installComplete.php

23 lines
631 B
PHP

<?php
class InstallStepInstallComplete extends InstallStep
{
public function init()
{
InstallConfig::$sFileConfig = dirname(INSTALL_DIR) . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.local.php';
}
public function show()
{
/**
* Прописываем параметры в конфиг
*/
$aSave = array(
'module.blog.encrypt' => md5(time() . mt_rand()),
'module.talk.encrypt' => md5(time() . mt_rand()),
'module.security.hash' => md5(time() . mt_rand()),
);
InstallConfig::save($aSave);
}
}