public function FirewallModule::ipAppendAdditional in Anti Spam by CleanTalk 9.1.x
Same name and namespace in other branches
- 8.4 src/lib/Cleantalk/Common/Firewall/FirewallModule.php \Cleantalk\Common\Firewall\FirewallModule::ipAppendAdditional()
Configure and set additional properties: real_ip, test_ip, test
Parameters
array $ips:
Return value
void
File
- src/
lib/ Cleantalk/ Common/ Firewall/ FirewallModule.php, line 120
Class
Namespace
Cleantalk\Common\FirewallCode
public function ipAppendAdditional($ips) {
$this->real_ip = isset($ips['real']) ? $ips['real'] : null;
if (Get::get('sfw_test_ip') && Helper::ip__validate(Get::get('sfw_test_ip')) !== false) {
$this->ip_array['sfw_test'] = Get::get('sfw_test_ip');
$this->test_ip = Get::get('sfw_test_ip');
$this->test = true;
}
}