public function getDomain()
    {
        $current = $this->server['HTTP_HOST'];
        $parts = explode('.', $current);

        $zone = array_pop($parts);
        $provider = array_pop($parts);

        return $provider . '.' . $zone;
    }
public function getDomain()
    {
        $current = $this->server['HTTP_HOST'];
        $parts = explode('.', $current);

        $zone = array_pop($parts);
        $provider = array_pop($parts);

        return $provider . '.' . $zone;
    }
public function getDomain ( ) { $ current = $ this -> server [ 'HTTP_HOST' ] ; $ parts = explode ( '.' , $ current ) ; $ zone = array_pop ( $ parts ) ; $ provider = array_pop ( $ parts ) ; return $ provider . '.' . $ zone ; }
Returns base domain

@return string
Returns base domain