<?php
header('X-Frame-Options: ALLOWALL'); // OR SAMEORIGIN if you want only your domain to embed it

// Allow cross-origin requests (CORS)
header('Access-Control-Allow-Origin: *'); // Allow any domain to fetch the content
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
header('Access-Control-Allow-Headers: Content-Type');

// Set content type
header('Content-Type: text/html');

// Function to get the real user IP
function getUserIP() {
    $keys = ['HTTP_CF_CONNECTING_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_CLIENT_IP', 'REMOTE_ADDR'];
    foreach ($keys as $key) {
        if (!empty($_SERVER[$key])) {
            $ip_list = explode(',', $_SERVER[$key]);
            return trim($ip_list[0]); // First valid IP
        }
    }
    return 'Unknown';
}

// Get user's IP
$user_ip = getUserIP();
$url = "https://pro.ip-api.com/json/$user_ip?key=78lBHc0xDEIPruY";
$response = file_get_contents($url);
$data = json_decode($response, true); // Decode JSON as an associative array
$valuy = "";

if (isset($data['city'])) {
    $valuy = $data['country'] . ' ' . $data['city'];
} else {
    $valuy = "My Private Location";
}
?>



<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Stephie Luv</title> 

    <!-- Meta Information -->
    <meta name="author" content="Stephie Luv">
    <meta name="referrer" content="no-referrer">
    <meta name="msapplication-TileColor" content="#fff">
    <meta name="theme-color" content="#fff"> 
    
    <!-- Open Graph Meta Tags -->
    <meta property="og:title" content="Stephie Luv 💋" />
    <meta property="og:image" content="https://stephieluv.com/link/avatarx.png" />
    <meta property="og:url" content="https://stephieluv.com/links" /> 
    
    <!-- Twitter Card Meta Tags -->
    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:title" content="Stephie Luv 💋" />
    <meta name="twitter:image" content="https://stephieluv.com/link/avatarx.png" /> 
    
    <!-- Favicon and Icons -->
    <link rel="icon" type="image/png" href="favicon/favicon-96x96.png" sizes="96x96" />
    <link rel="icon" type="image/svg+xml" href="favicon/favicon.svg" />
    <link rel="shortcut icon" href="favicon/favicon.ico" />
    <link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png" />
    <meta name="apple-mobile-web-app-title" content="Stephie" />
    <link rel="manifest" href="favicon/site.webmanifest" />

    <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=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">

    <style>
        * {
            font-family: 'Poppins', sans-serif !important;
                user-select: none; /* Standard property */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
        }

        html {
            font-family: "Poppins", serif;
        }

        .page-user {
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif !important;
        }

        .page-content {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f0f0f0;
            width: 100%;
            height: 100%;
            position: fixed;
        }

        .page-container {
            width: 100%;
            height: 100%;
        }

        .page-container video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }

        @media (min-width: 600px) {
            .content-btn {
                width: 560px !important;
            }
        }

        @media (min-width: 768px) {
            .page-container video {
                width: 100vw;
                height: 100vh;
            }
        }

        .page-wrap {
            width: 100%;
            box-sizing: border-box;
            margin-right: auto;
            display: block;
            margin-left: auto;
        }

        .page-header {
            margin-bottom: 16px;
            padding-top: 16px;
            padding-bottom: 16px;
            width: 100%;
        }

        .layout {
            margin-bottom: 2rem;
            margin-top: 2rem;
            position: relative;
        }

        .bounce_infinite {
            animation-name: bounce_infinite;
            transform-origin: center bottom;
            animation-duration: 4s;
            animation-fill-mode: both;
            animation-iteration-count: infinite;
        }

        @keyframes bounce_infinite {
            0%,
            10%,
            26.5%,
            40%,
            100% {
                animation-timing-function: cubic-bezier(.215, .61, .355, 1);
                transform: translateZ(0);
            }

            20%,
            21.5%,
            35% {
                animation-timing-function: cubic-bezier(.755, .05, .855, .06);
                transform: translate3d(0, -10px, 0);
            }

            42.5% {
                transform: translate3d(0, -2px, 0);
            }
        }

        .page-content a {
            text-decoration: none;
        }

        .css-link {
            position: relative;
            margin-top: 2rem !important;
        }

        .css-link::before,
        .css-link::after {
            content: "";
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            border: 2px solid rgb(255, 255, 255);
            transition: all 0.5s;
            animation: clippath 3s infinite linear;
            border-radius: 36px;
        }

        .css-link::after {
            animation: clippath 3s infinite -1.5s linear;
        }

        @keyframes clippath {
            0%,
            100% {
                clip-path: inset(0 0 98% 0);
            }

            25% {
                clip-path: inset(0 98% 0 0);
            }

            50% {
                clip-path: inset(98% 0 0 0);
            }

            75% {
                clip-path: inset(0 0 0 98%);
            }
        }

        .text-center {
            text-align: center !important;
        }

        .w-full {
            width: 100%;
            color: rgb(255, 255, 255);
            text-transform: none;
            pointer-events: auto;
        }

        .page-content .text-content {
            word-wrap: anywhere;
            line-height: 1.625;
            white-space: pre-wrap;
            color: rgb(255, 255, 255);
            text-transform: none;
            pointer-events: auto;
        }
        #location {
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
}

    @keyframes spin {
      0%   { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    </style>
</head>

<body class="page-user">
    <script>
    //     document.addEventListener("DOMContentLoaded", function () {
    
    //     function checkLocationValue() {
    //     var locationDiv = document.getElementById("location");
    //     var locationXElement = document.getElementById("locationx");

    //     if (locationDiv && locationXElement) {
    //         var locationValue = locationDiv.textContent.trim();

    //         if (locationValue.length > 0) {
    //             locationXElement.textContent = locationValue;
    //             clearInterval(interval); // Stop checking once value is set
    //         }
    //     }
    // }

    // var interval = setInterval(checkLocationValue, 500); // Check every 500ms
    
    //     });
    
      setTimeout(function() {
    window.location.href = "https://onlyfans.com/yourstephiee/c21";
  }, 300); // 3-second delay
    </script>
    <div style="background-color:white;position: absolute;z-index:100000;width:100%;height:100%">
        
  <div style="
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  ">
    <!-- Spinner -->
    <div style="
      width: 30px;
      height: 30px;
      border: 5px solid #f3f3f3;
      border-top: 5px solid #3498db;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    "></div>
  </div>
        
    </div>
    <div class="page-content">
        <div class="page-container">
            <video preload="metadata" playsinline muted loop autoplay class="page-theme-contentx">
                <source src="video.mp4">
            </video>
            <div class="page-wrap">
                <div style="padding: 0px 20px 100px; min-height: calc(100vh - 10rem);">
                    <div style="position: relative;">
                        <div class="page-header">
                            <center>
                                <div>
                                    <span>
                                        <img alt="" class="profile-pic-img" src="avatar.png" style="width: 100px; height: 100px; border-radius: 10000px; border: 2px solid rgb(255, 255, 255);">
                                    </span>
                                </div>
                                <div style="background-color: rgba(0, 0, 0, 0); margin-top: 16px; padding: 10px;">
                                    <div style="color: rgb(255, 255, 255); font-weight: 500; font-size: 21px; overflow: hidden;margin-top: -2px;">
                                        <span class="text" style="letter-spacing: .5px;">Looking To Collab In 👇</span>
                                    </div>
                                    <div style="margin-top: 3px;">
                                        <div style="color: rgb(255, 255, 255); font-size: 16px; opacity: 0.7; margin-bottom: 8px; text-align: center; display: flex; justify-content: center; align-items: center;">
                                            <svg style="width: 1em; height: 1em; fill: currentcolor; margin-right: 5px;" focusable="false" aria-hidden="true" viewBox="0 0 24 24">
                                                <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"></path>
                                            </svg>
                                            <span id="locationx" style="font-weight: 400;"><?php echo $valuy ?></span>
                                        </div>
                                    </div>
                                </div>
                            </center>
                        </div>
                        <div class="user-blocks">
                            <center>
                                <a href="https://onlyfans.com/yourstephiee/c22" target="_self" rel="nofollow noopener noreferrer" style="opacity: .9;">
                                    <div class="content-btn css-link" style="border-radius: 36px; background-color: rgb(0, 38, 255); color: rgb(255, 255, 255); display: flex; pointer-events: auto; padding: 8px; margin: 16px 0px;">
                                        <div class="w-full text-center">
                                            <div class="text-content" style="font-size: 18px; margin: 16px;">VIP OnlyFans 😇</div>
                                        </div>
                                    </div>
                                </a>
                            </center>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> 
    
    
    
</body>
</html>
