From ef055e79855cf3be1ad5e1aa5f9ebad480062384 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 1 Jan 2022 10:37:28 +0100 Subject: Bye furries --- admin/api/getIpLocation.php | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 admin/api/getIpLocation.php (limited to 'admin/api/getIpLocation.php') diff --git a/admin/api/getIpLocation.php b/admin/api/getIpLocation.php deleted file mode 100644 index c40d96e..0000000 --- a/admin/api/getIpLocation.php +++ /dev/null @@ -1,38 +0,0 @@ - $item) { - if ($ip === $_GET['_']) { - $data = $item; - } -} - -if ($data === null) { - $data = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $arg)); - $ipCache[$_GET['_']] = $data; - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/admin/private/ipcache.json", json_encode($ipCache)); -} - -if ($data["geoplugin_status"] === 404) { - die("" . l("Local IP address", "Adresse IP locale") . ""); -} else { - if ($data["geoplugin_inEU"]) { - die($data["geoplugin_countryName"] . " " . l("EU", "UE") . ""); - } else { - die($data["geoplugin_countryName"]); - } -} \ No newline at end of file -- cgit