source/Core/SystemRequirements.php
protected function _getShopHostInfoFromServerVars()
    {
        // got here from setup dir
        $sScript = $_SERVER['SCRIPT_NAME'];
        $iPort = (int) $_SERVER['SERVER_PORT'];
        $blSsl = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on'));
        if (!$iPort) {
            $iPort = $blSsl ? 443 : 80;
        }
        $sScript = rtrim(dirname(dirname($sScript)), '/') . '/';

        return [
            'host' => $_SERVER['HTTP_HOST'],
            'port' => $iPort,
            'dir'  => $sScript,
            'ssl'  => $blSsl,
        ];
    }
protected function _getShopHostInfoFromServerVars()
    {
        // got here from setup dir
        $sScript = $_SERVER['SCRIPT_NAME'];
        $iPort = (int) $_SERVER['SERVER_PORT'];
        $blSsl = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on'));
        if (!$iPort) {
            $iPort = $blSsl ? 443 : 80;
        }
        $sScript = rtrim(dirname(dirname($sScript)), '/') . '/';

        return [
            'host' => $_SERVER['HTTP_HOST'],
            'port' => $iPort,
            'dir'  => $sScript,
            'ssl'  => $blSsl,
        ];
    }
protected function _getShopHostInfoFromServerVars ( ) { // got here from setup dir $ sScript = $ _SERVER [ 'SCRIPT_NAME' ] ; $ iPort = ( int ) $ _SERVER [ 'SERVER_PORT' ] ; $ blSsl = ( isset ( $ _SERVER [ 'HTTPS' ] ) && ( $ _SERVER [ 'HTTPS' ] == 'on' ) ) ; if ( ! $ iPort ) { $ iPort = $ blSsl ? 443 : 80 ; } $ sScript = rtrim ( dirname ( dirname ( $ sScript ) ) , '/' ) . '/' ; return [ 'host' => $ _SERVER [ 'HTTP_HOST' ] , 'port' => $ iPort , 'dir' => $ sScript , 'ssl' => $ blSsl , ] ; }
returns host, port, base dir, ssl information as assotiative array, false on error
takes this info from _SERVER variable

@return array
returns host port base dir ssl information as assotiative array false on error takes this info from _SERVER variable