Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/wyomind/framework/view/base/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/wyomind/framework/view/base/templates/mage_version.phtml
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productMetadata = $objectManager->get('Magento\Framework\App\ProductMetadataInterface');
$version = $productMetadata->getVersion();
$explodedVersion = explode("-", $version);
$mageVersion = $explodedVersion[0];
?>
<script>
    var MAGE_VERSION = "<?= /* noEscape */ $mageVersion ?>";
    function compareVersions(installed, required) {
        var a = installed.split('.');
        var b = required.split('.');
        for (var i = 0; i < a.length; ++i) {
            a[i] = Number(a[i]);
        }
        for (var i = 0; i < b.length; ++i) {
            b[i] = Number(b[i]);
        }
        if (a.length == 2) {
            a[2] = 0;
        }
        if (a[0] > b[0]) return true;
        if (a[0] < b[0]) return false;
        if (a[1] > b[1]) return true;
        if (a[1] < b[1]) return false;
        if (a[2] > b[2]) return true;
        if (a[2] < b[2]) return false;
        return true;
    }
</script>

Spamworldpro Mini