5     public $name = 
'DisableExternal';
 
    8         $our_host = 
$config->getDefinition(
'URI')->host;
 
    9         if ($our_host !== null) $this->ourHostParts = array_reverse(explode(
'.', $our_host));
 
   12         if (is_null($uri->host)) 
return true;
 
   13         if ($this->ourHostParts === 
false) 
return false;
 
   14         $host_parts = array_reverse(explode(
'.', $uri->host));
 
   15         foreach ($this->ourHostParts as $i => $x) {
 
   16             if (!isset($host_parts[$i])) 
return false;
 
   17             if ($host_parts[$i] != $this->ourHostParts[$i]) 
return false;