original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Is the host name one allowed by the system
  
  @param string $fullHost
  @return boolean
docstring_tokens: Is the host name one allowed by the system