public function isAllowedHost($fullHost)
    {
        $host = \MUtil_String::stripToHost($fullHost);
        $request = $this->request;
        if ($request instanceof \Zend_Controller_Request_Http) {
            if ($host == \MUtil_String::stripToHost($request->getServer('HTTP_HOST'))) {
                return true;
            }
        }
        if (isset($this->project)) {
            foreach ($this->project->getAllowedHosts() as $allowedHost) {
                if ($host == \MUtil_String::stripToHost($allowedHost)) {
                    return true;
                }
            }
        }
        $loader = $this->getLoader();
        foreach ($loader->getUserLoader()->getOrganizationUrls() as $url => $orgId) {
            if ($host == \MUtil_String::stripToHost($url)) {
                return true;
            }
        }

        return false;
    }
public function isAllowedHost($fullHost)
    {
        $host = \MUtil_String::stripToHost($fullHost);
        $request = $this->request;
        if ($request instanceof \Zend_Controller_Request_Http) {
            if ($host == \MUtil_String::stripToHost($request->getServer('HTTP_HOST'))) {
                return true;
            }
        }
        if (isset($this->project)) {
            foreach ($this->project->getAllowedHosts() as $allowedHost) {
                if ($host == \MUtil_String::stripToHost($allowedHost)) {
                    return true;
                }
            }
        }
        $loader = $this->getLoader();
        foreach ($loader->getUserLoader()->getOrganizationUrls() as $url => $orgId) {
            if ($host == \MUtil_String::stripToHost($url)) {
                return true;
            }
        }

        return false;
    }
public function isAllowedHost ( $ fullHost ) { $ host = \ MUtil_String :: stripToHost ( $ fullHost ) ; $ request = $ this -> request ; if ( $ request instanceof \ Zend_Controller_Request_Http ) { if ( $ host == \ MUtil_String :: stripToHost ( $ request -> getServer ( 'HTTP_HOST' ) ) ) { return true ; } } if ( isset ( $ this -> project ) ) { foreach ( $ this -> project -> getAllowedHosts ( ) as $ allowedHost ) { if ( $ host == \ MUtil_String :: stripToHost ( $ allowedHost ) ) { return true ; } } } $ loader = $ this -> getLoader ( ) ; foreach ( $ loader -> getUserLoader ( ) -> getOrganizationUrls ( ) as $ url => $ orgId ) { if ( $ host == \ MUtil_String :: stripToHost ( $ url ) ) { return true ; } } return false ; }
Is the host name one allowed by the system

@param string $fullHost
@return boolean
Is the host name one allowed by the system