mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
#43 설정 값 저장 방식 개선.
This commit is contained in:
parent
18ab99f2cc
commit
39489ac1b7
2 changed files with 7 additions and 2 deletions
|
|
@ -490,8 +490,7 @@ class adminAdminController extends admin
|
||||||
$db_info->use_sitelock = ($vars->use_sitelock) ? $vars->use_sitelock : 'N';
|
$db_info->use_sitelock = ($vars->use_sitelock) ? $vars->use_sitelock : 'N';
|
||||||
$db_info->sitelock_title = $vars->sitelock_title;
|
$db_info->sitelock_title = $vars->sitelock_title;
|
||||||
$db_info->sitelock_message = $vars->sitelock_message;
|
$db_info->sitelock_message = $vars->sitelock_message;
|
||||||
|
$db_info->sitelock_whitelist = $vars->sitelock_whitelist;
|
||||||
$db_info->sitelock_whitelist = preg_replace("/[\r\n|\r|\n]+/", ",", $vars->sitelock_whitelist);
|
|
||||||
|
|
||||||
FileHandler::writeFile(Context::getConfigFile(), $oInstallController->_getDBConfigFileContents($db_info));
|
FileHandler::writeFile(Context::getConfigFile(), $oInstallController->_getDBConfigFileContents($db_info));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -559,6 +559,12 @@ class installController extends install
|
||||||
{
|
{
|
||||||
$tmpValue = $this->_getDbConnText($key, $val, true);
|
$tmpValue = $this->_getDbConnText($key, $val, true);
|
||||||
}
|
}
|
||||||
|
else if($key == 'sitelock_whitelist')
|
||||||
|
{
|
||||||
|
$tmpValue = preg_split("/[\r\n|\r|\n]+/", $val);
|
||||||
|
$tmpValue = array_unique($tmpValue);
|
||||||
|
$tmpValue = sprintf('$db_info->%s = array(\'%s\');' . PHP_EOL, $key, implode('\', \'', $tmpValue));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if($key == 'default_url')
|
if($key == 'default_url')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue