| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/schutz-im-internet.com/web/includes/ |
Upload File : |
<?php
function get_geolocation( $ip ) {
$url = "http://ip-api.com/json/" . $ip . "?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,offset,currency,isp,org,as,asname,reverse,mobile,proxy,hosting,query&lang=de";
$cURL = curl_init();
curl_setopt($cURL, CURLOPT_URL, $url);
curl_setopt($cURL, CURLOPT_HTTPGET, true);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cURL, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Accept: application/json'
));
return curl_exec( $cURL );
}
// IP Adresse orten - Shortcode
function locate_ip_address( $ip ) {
//$oGEO = new geo();
$apiKey = "e97fb124bb664cdf839c7d3947fd81d9";
$location = get_geolocation( $ip );
$decodedLocation = (object) json_decode( $location, true );
return $decodedLocation;
echo "<pre>";
print_r($decodedLocation);
echo "</pre>";
return '<div id="jumpto_ip-recherche-und-ip-standort" class="content split-content">
<h2>' . ($title ? $title : "IP-Recherche und IP-Standort") . '</h2>
<span id="ip-tracking-form">
<label for="ip-address-input">Anfrage für</label><input type="text" name="ip-address" id="ip-address-input" placeholder="IP-Adresse eingeben" /><button class="ip-address-search" id="ip-search"><i class="fa fa-search"></i></button>
</span>
<div class="row ip-tracking">
<div class="col-md-8">
<ul>
<li class="row">
<span class="col-md-4">IP-Adresse</span>
<span class="col-md-8 data-request-content" data-request-content="ip-address">' . $decodedLocation->query . ' <strong>Ihre IP-Adresse</strong></span>
</li>
<li class="row">
<span class="col-md-4">ISP</span>
<span class="col-md-8 data-request-content" data-request-content="isp">' . ( $decodedLocation->isp ? $decodedLocation->isp : $decodedLocation->org ) . '</span>
</li>
<li class="row">
<span class="col-md-4">Koordinaten</span>
<span class="col-md-8 data-request-content" data-request-content="coordinates">' . $decodedLocation->lat . ', ' . $decodedLocation->lon . '</span>
</li>
<li class="row">
<span class="col-md-4">Zeitzone</span>
<span class="col-md-8 data-request-content" data-request-content="time-zone">' . $decodedLocation->timezone . '</span>
</li>
<li class="row">
<span class="col-md-4">Herkunft</span>
<span class="col-md-8 data-request-content" data-request-content="ip-location">
' . $decodedLocation->zip . ' ' . $decodedLocation->city . '<br />
' . $decodedLocation->country . '
</span>
</li>
</ul>
<span style="clear:both;"></span>
</div>
<div class="col-md-4 ip-tracking-map">
<div class="alignright sense-link-bar" style="display:none;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1943906092680535"
data-ad-slot="3047494472"
data-ad-format="link"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>
<div class="ip_map" id="ip_map"></div>
</div>
</div>
<div class="col-12 ip-tracking-info">
<em>Handy-sofort-orten.de speichert keine Anfragen oder Ergebnisse aus diesem IP-Tool. Mehr Informationen erhalten Sie in der https://www.handy-sofort-orten.de/datenschutzerklaerung/" title="Datenschutzerklärung">Datenschutzerklärung</a>. Die ermittelten Daten der IP-Recherche können evtl. nicht dem tatsächlichen Standort entsprechen, da die Technik Ihres Internetserviceproviders sich nicht zwingend am Standort des Endnutzers / Endgerätes befindet. Diese Umstände könnte zur Folge haben, dass die Positionsangabe auf der dargestellten Google Karte leicht verfälscht ist.</em>
</div>
</div>
<script type="text/javascript">
function initGeoMap(geo_lat = \'' . $decodedLocation->lat . '\', geo_lng = \'' . $decodedLocation->lon . '\') {
var latlng = new google.maps.LatLng(geo_lat, geo_lng);
var myOptions = {
scrollwheel: false,
zoom: 4,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("ip_map"), myOptions);
var marker = new google.maps.Marker({
position: latlng,
map: map
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB_zatWBdec86LY8GuZnMKN5gjJBMtIglo&callback=initGeoMap"></script>';
}