source/Application/Controller/Admin/ShopLicense.php
protected function _fetchCurVersionInfo($sUrl)
    {
        $aParams = ["myversion" => \OxidEsales\Eshop\Core\Registry::getConfig()->getVersion()];
        $oLang = \OxidEsales\Eshop\Core\Registry::getLang();
        $iLang = $oLang->getTplLanguage();
        $sLang = $oLang->getLanguageAbbr($iLang);

        $oCurl = oxNew(\OxidEsales\Eshop\Core\Curl::class);
        $oCurl->setMethod("POST");
        $oCurl->setUrl($sUrl . "/" . $sLang);
        $oCurl->setParameters($aParams);
        $sOutput = $oCurl->execute();

        $sOutput = strip_tags($sOutput, "<br>, <b>");
        $aResult = explode("<br>", $sOutput);
        if (strstr($aResult[5], "update")) {
            $sUpdateLink = \OxidEsales\Eshop\Core\Registry::getLang()->translateString("VERSION_UPDATE_LINK");
            $aResult[5] = "<a id='linkToUpdate' href='$sUpdateLink' target='_blank'>" . $aResult[5] . "</a>";
        }

        return implode("<br>", $aResult);
    }
protected function _fetchCurVersionInfo($sUrl)
    {
        $aParams = ["myversion" => \OxidEsales\Eshop\Core\Registry::getConfig()->getVersion()];
        $oLang = \OxidEsales\Eshop\Core\Registry::getLang();
        $iLang = $oLang->getTplLanguage();
        $sLang = $oLang->getLanguageAbbr($iLang);

        $oCurl = oxNew(\OxidEsales\Eshop\Core\Curl::class);
        $oCurl->setMethod("POST");
        $oCurl->setUrl($sUrl . "/" . $sLang);
        $oCurl->setParameters($aParams);
        $sOutput = $oCurl->execute();

        $sOutput = strip_tags($sOutput, "<br>, <b>");
        $aResult = explode("<br>", $sOutput);
        if (strstr($aResult[5], "update")) {
            $sUpdateLink = \OxidEsales\Eshop\Core\Registry::getLang()->translateString("VERSION_UPDATE_LINK");
            $aResult[5] = "<a id='linkToUpdate' href='$sUpdateLink' target='_blank'>" . $aResult[5] . "</a>";
        }

        return implode("<br>", $aResult);
    }
protected function _fetchCurVersionInfo ( $ sUrl ) { $ aParams = [ "myversion" => \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getVersion ( ) ] ; $ oLang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) ; $ iLang = $ oLang -> getTplLanguage ( ) ; $ sLang = $ oLang -> getLanguageAbbr ( $ iLang ) ; $ oCurl = oxNew ( \ OxidEsales \ Eshop \ Core \ Curl :: class ) ; $ oCurl -> setMethod ( "POST" ) ; $ oCurl -> setUrl ( $ sUrl . "/" . $ sLang ) ; $ oCurl -> setParameters ( $ aParams ) ; $ sOutput = $ oCurl -> execute ( ) ; $ sOutput = strip_tags ( $ sOutput , "<br>, <b>" ) ; $ aResult = explode ( "<br>" , $ sOutput ) ; if ( strstr ( $ aResult [ 5 ] , "update" ) ) { $ sUpdateLink = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> translateString ( "VERSION_UPDATE_LINK" ) ; $ aResult [ 5 ] = "<a id='linkToUpdate' href='$sUpdateLink' target='_blank'>" . $ aResult [ 5 ] . "</a>" ; } return implode ( "<br>" , $ aResult ) ; }
Fetch current shop version information from url

@param string $sUrl current version info fetching url by edition

@return string
Fetch current shop version information from url