mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
#43 IP목록 체크 보완.
This commit is contained in:
parent
bb22239ec4
commit
11a013ba40
2 changed files with 4 additions and 3 deletions
|
|
@ -490,6 +490,7 @@ class adminAdminController extends admin
|
|||
$db_info->sitelock_title = $vars->sitelock_title;
|
||||
$db_info->sitelock_message = $vars->sitelock_message;
|
||||
$db_info->sitelock_whitelist = $vars->sitelock_whitelist;
|
||||
if(!$db_info->sitelock_whitelist) $db_info->sitelock_whitelist = '127.0.0.1';
|
||||
|
||||
FileHandler::writeFile(Context::getConfigFile(), $oInstallController->_getDBConfigFileContents($db_info));
|
||||
|
||||
|
|
|
|||
|
|
@ -552,9 +552,9 @@ class installController extends install
|
|||
}
|
||||
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));
|
||||
if(!is_array($val)) $val = preg_split("/[\r\n|\r|\n]+/", $val);
|
||||
$val = array_unique($val);
|
||||
$tmpValue = sprintf('$db_info->%s = array(\'%s\');' . PHP_EOL, $key, implode('\', \'', $val));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue