mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
#43 IP목록 체크 보완.
This commit is contained in:
parent
bb22239ec4
commit
11a013ba40
2 changed files with 4 additions and 3 deletions
|
|
@ -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