One Hat Cyber Team
Your IP :
18.224.52.33
Server IP :
50.28.103.30
Server :
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
nginx/1.24.0
PHP Version :
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
globify.live
/
layouts
/
landing_page
/
View File Name :
pwa_install.php
<?php if (Registry::load('settings')->add_to_home_screen_library === 'enable') { ?> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/philfung/add-to-homescreen@2.1/dist/add-to-homescreen.min.css" /> <script src="https://cdn.jsdelivr.net/gh/philfung/add-to-homescreen@2.1/dist/add-to-homescreen.min.js"></script> <script> document.addEventListener('DOMContentLoaded', function () { window.AddToHomeScreenInstance = window.AddToHomeScreen({ appName: '<?php echo Registry::load('settings')->pwa_name ?>', appNameDisplay: '<?php echo Registry::load('settings')->pwa_display ?>', appIconUrl: 'assets/files/defaults/pwa_icon-192x192.png', assetUrl: 'assets/files/defaults/', maxModalDisplayCount: -1 }); setTimeout(function() { showAddToHomeScreen(); }, 5000); }); function showAddToHomeScreen() { const maxShowCount = 4; if (typeof(Storage) !== "undefined") { const lastShown = localStorage.getItem('lastAddToHomeScreenTime'); const showCount = localStorage.getItem('addToHomeScreenShowCount') || 0; const currentTime = new Date().getTime(); if (!lastShown || ((currentTime - lastShown) / 1000 > 3600)) { localStorage.setItem('addToHomeScreenShowCount', 0); localStorage.setItem('lastAddToHomeScreenTime', currentTime); } if (showCount < maxShowCount) { window.AddToHomeScreenInstance.show(); localStorage.setItem('addToHomeScreenShowCount', parseInt(showCount) + 1); } } else { window.AddToHomeScreenInstance.show(); } } </script> <?php } else { ?> <script type="module"> import 'https://cdn.jsdelivr.net/npm/@pwabuilder/pwainstall'; const el = document.createElement('pwa-update'); document.body.appendChild(el); </script> <?php } ?>