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/app/code/Kaliop/OutdatedBrowser/view/frontend/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/old/app/code/Kaliop/OutdatedBrowser/view/frontend/templates/script.phtml
<?php
/**
 * Copyright (c) 2020 Kaliop Digital Commerce (https://digitalcommerce.kaliop.com) All Rights Reserved.
 * @author Philippe Beauvais <[email protected]>
 * https://opensource.org/licenses/OSL-3.0  Open Software License (OSL 3.0)
 */
?>
<!-- Kaliop Outdated Browser script -->
<script type="text/javascript">
    window.onload=function() {
        var popin = document.getElementById('outdated-browser-popin');
        var cancelButton = document.getElementById('outdated-browser-cancel-button');

        if(checkNavigatorIeVersion() != false && checkNavigatorIeVersion() <= 10) {
            if(getOutdatedBrowserCookie() == false) {
                popin.style.display = "block";
            }
        }

        cancelButton.onclick = function() {
            setOutdatedBrowserCookie();
            popin.style.display = "none";
            return false;
        };

        function checkNavigatorIeVersion() {
            var ua = window.navigator.userAgent;
            var msie = ua.indexOf('MSIE ');
            if (msie > 0) {
                return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
            }
            return false;
        }

        function setOutdatedBrowserCookie() {
            var d = new Date();
            d.setDate(d.getDate() + 1);
            var expires = "expires=" + d.toUTCString();
            document.cookie = "outdatedBrowserSeen=1; " + expires;
        }

        function getOutdatedBrowserCookie() {
            var c;
            var cookies = document.cookie.split(';');
            for (var i=0; i < cookies.length; i++) {
                c = cookies[i].split('=');
                if (c[0].trim() == 'outdatedBrowserSeen') {
                    return true;
                }
            }
            return false;
        }
    };
</script>

Spamworldpro Mini