    <script async src='https://maps.googleapis.com/maps/api/js?key=AIzaSyCMPtVMDhHelORhyk2AAc9FtjgnjybvdMU&callback=initMap&v=weekly'></script> 
    <script type="module" src="./maps.js"></script>

    <?php
    $IP = $_SERVER['REMOTE_ADDR'];
    $ip = htmlentities($_GET["ip"]);
    $host = gethostbyaddr($ip);
    $latitude = htmlentities($_POST['latitude'], ENT_QUOTES, 'UTF-8');
    $longitude = htmlentities($_POST['longitude'], ENT_QUOTES, 'UTF-8');
    $city = htmlentities($_POST['city'], ENT_QUOTES, 'UTF-8');
    $details = json_decode(file_get_contents("http://ipinfo.io/{$IP}/json?token=391da55dff40d9"));
    $location = json_decode(file_get_contents("http://ipinfo.io/{$IP}/json?token=391da55dff40d9"));
    echo "<b>IP: </b>" .$details->ip;
    ?>



<?php

            $IP = $_SERVER['REMOTE_ADDR'];
            $ip = htmlentities($_GET["ip"]);
            $latitude = htmlentities($_POST['latitude'], ENT_QUOTES, 'UTF-8');
            $longitude = htmlentities($_POST['longitude'], ENT_QUOTES, 'UTF-8');
            $city = htmlentities($_POST['city'], ENT_QUOTES, 'UTF-8');
            $details = json_decode(file_get_contents("http://ipinfo.io/{$ip}/json?token=391da55dff40d9"));
            $location = json_decode(file_get_contents("http://ipinfo.io/{$ip}/json?token=391da55dff40d9"));
            
            if(isset($_GET['ip']))
            {           
            print ('<form method="get" action="">
              <h1 class="h3 mb-3 fw-normal">IP Lookup</h1>
              <div class="form-floating">
              <form method="get" action="">
              <input type="text" class="form-control" id="floatingInput" maxlength="32" placeholder="IP" title="Enter IP Address here" />
              <br/>
              <button class="w-100 btn btn-lg btn-primary button" type="submit">Let`s Go</button>
              </div>
              <p class="mt-5 mb-3 text-muted">sysLUL.de &copy; 2022</p>
              </form>');