Файловый менеджер - Редактировать - /www/wwwroot/gamenworld.store/themes/toolssstik/js/main.js
�азад
const hostname = window.location.hostname; const lForm = document.getElementById("login-form"); if (lForm !== null) { lForm.addEventListener("submit", (e) => { e.preventDefault(); const username = lForm.querySelector("input[name='usernameEmail']").value; const password = lForm.querySelector("input[name='password']").value; const button = lForm.querySelector("button[type='submit']"); const xhr = new XMLHttpRequest(); button.setAttribute("disabled", "true"); xhr.open("POST", `https://${hostname}/xhr/login.php`); xhr.onreadystatechange = () => { if (xhr.readyState === XMLHttpRequest.DONE) { if (xhr.status === 200) { if (xhr.responseText.includes("successfully") == true) { Toastify({ text: xhr.responseText, className: "info", duration: 3000, style: { background: "#96c93d", }, }).showToast(); setTimeout(() => { window.location.href = "./admin/"; button.removeAttribute("disabled"); }, 1500); } else { Toastify({ text: xhr.responseText, className: "info", duration: 3000, style: { background: "red", }, }).showToast(); button.removeAttribute("disabled"); } } } }; const form = new FormData(); form.append("usernameEmail", username); form.append("password", password); xhr.send(form); }); }
| ver. 1.4 |
Github
|
.
| PHP 8.0.26 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка