C:\xampp\htdocs\landing\wp-content\plugins\better-wp-security\core\lib\ban-hosts\Chain_Source.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace iThemesSecurity\Ban_Hosts;

final class 
Chain_Source implements Source {

    
/** @var Source[] */
    
private $sources;

    
/**
     * Chain_Source constructor.
     *
     * @param Source ...$sources List of sources to pull from.
     */
    
public function __constructSource ...$sources ) {
        
$this->sources $sources;
    }

    public function 
find_ban_for_host$host ) {
        foreach ( 
$this->sources as $source ) {
            if ( 
$ban $source->find_ban_for_host$host ) ) {
                return 
$ban;
            }
        }

        return 
null;
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586