$pattern = sprintf('/(?:,\s*|^)\%Qs\E(?=,\s*|$)/m', $this->input->ip_address());
// Returns 1, 0 or FALSE (on error only). Therefore implicitly convert 1 to TRUE
if (preg_match($pattern, $this->config->item('rest_ip_blacklist')))
$pattern = sprintf('/(?:,\s*|^)\%Qs\E(?=,\s*|$)/m', $this->input->ip_address());
// Returns 1, 0 or FALSE (on error only). Therefore implicitly convert 1 to TRUE
if (preg_match($pattern, $this->config->item('rest_ip_blacklist')))
2 回答1.5k 阅读✓ 已解决
1 回答1.2k 阅读✓ 已解决
2 回答878 阅读✓ 已解决
1 回答1.1k 阅读✓ 已解决
2 回答935 阅读
1 回答916 阅读
1 回答847 阅读
就是匹配黑名单中的IP