proxylib.php
protected function _checkPermissions()
    {
        if($this->_allowedHostnames === NULL)
            return;

        if(key_exists('REMOTE_HOST', $_SERVER))
            $host = $_SERVER['REMOTE_HOST'];
        else
            $host = $_SERVER['REMOTE_ADDR'];

        if(!in_array($host, $this->_allowedHostnames))
            throw new Exception("Requests from hostname ($host) are not allowed");
    }
protected function _checkPermissions()
    {
        if($this->_allowedHostnames === NULL)
            return;

        if(key_exists('REMOTE_HOST', $_SERVER))
            $host = $_SERVER['REMOTE_HOST'];
        else
            $host = $_SERVER['REMOTE_ADDR'];

        if(!in_array($host, $this->_allowedHostnames))
            throw new Exception("Requests from hostname ($host) are not allowed");
    }
protected function _checkPermissions ( ) { if ( $ this -> _allowedHostnames === NULL ) return ; if ( key_exists ( 'REMOTE_HOST' , $ _SERVER ) ) $ host = $ _SERVER [ 'REMOTE_HOST' ] ; else $ host = $ _SERVER [ 'REMOTE_ADDR' ] ; if ( ! in_array ( $ host , $ this -> _allowedHostnames ) ) throw new Exception ( "Requests from hostname ($host) are not allowed" ) ; }
Check that the proxy request is coming from the appropriate host
that was set in the second argument of the constructor
@return void
@throws Exception when a client hostname is not permitted on a request
Check that the proxy request is coming from the appropriate host that was set in the second argument of the constructor