mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
isCrawler, 관리자페이지 IP잠금, 사이트잠금 기능에서 ipfilter를 사용하도록 변경
This commit is contained in:
parent
98d3408919
commit
5fae27d53c
11 changed files with 85 additions and 67 deletions
|
|
@ -553,10 +553,8 @@ class installController extends install
|
|||
{
|
||||
$tmpValue = $this->_getDbConnText($key, $val, true);
|
||||
}
|
||||
else if($key == 'sitelock_whitelist')
|
||||
else if($key == 'sitelock_whitelist' || $key == 'admin_ip_list')
|
||||
{
|
||||
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
|
||||
|
|
@ -578,7 +576,6 @@ class installController extends install
|
|||
|
||||
$buff[] = $tmpValue;
|
||||
}
|
||||
$buff[] = "?>";
|
||||
|
||||
return implode(PHP_EOL, $buff);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue