|
Server IP : 2a02:4780:11:1596:0:cbc:26e7:10 / Your IP : 216.73.217.7 Web Server : LiteSpeed System : Linux in-mum-web1496.main-hosting.eu 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64 User : u213657319 ( 213657319) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u213657319/domains/mutiyanglobal.com/public_html/admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
// <?php
// $ips = get_client_ip();
// function get_client_ip() {
// if (!empty($_SERVER['HTTP_CLIENT_IP']))
// {
// $ip_address = $_SERVER['HTTP_CLIENT_IP'];
// }
// //whether ip is from proxy
// elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
// {
// $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
// }
// //whether ip is from remote address
// else
// {
// $ip_address = $_SERVER['REMOTE_ADDR'];
// }
// return $ip_address;
// }
// $country = ip_info();
// function ip_info($ip = '$ips', $purpose = "location", $deep_detect = TRUE) {
// $output = NULL;
// if (filter_var($ip, FILTER_VALIDATE_IP) === FALSE) {
// $ip = $_SERVER["REMOTE_ADDR"];
// if ($deep_detect) {
// if (filter_var(@$_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP))
// $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
// if (filter_var(@$_SERVER['HTTP_CLIENT_IP'], FILTER_VALIDATE_IP))
// $ip = $_SERVER['HTTP_CLIENT_IP'];
// }
// }
// $purpose = str_replace(array("name", "\n", "\t", " ", "-", "_"), NULL, strtolower(trim($purpose)));
// $support = array("country", "countrycode", "state", "region", "city", "location", "address");
// $continents = array(
// "AF" => "Africa",
// "AN" => "Antarctica",
// "AS" => "Asia",
// "EU" => "Europe",
// "OC" => "Australia (Oceania)",
// "NA" => "North America",
// "SA" => "South America"
// );
// if (filter_var($ip, FILTER_VALIDATE_IP) && in_array($purpose, $support)) {
// $ipdat = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=" . $ip));
// if (@strlen(trim($ipdat->geoplugin_countryCode)) == 2) {
// switch ($purpose) {
// case "location":
// $output = array(
// "city" => @$ipdat->geoplugin_city,
// "state" => @$ipdat->geoplugin_regionName,
// "country" => @$ipdat->geoplugin_countryName,
// "country_code" => @$ipdat->geoplugin_countryCode,
// "continent" => @$continents[strtoupper($ipdat->geoplugin_continentCode)],
// "continent_code" => @$ipdat->geoplugin_continentCode
// );
// break;
// case "address":
// $address = array($ipdat->geoplugin_countryName);
// if (@strlen($ipdat->geoplugin_regionName) >= 1)
// $address[] = $ipdat->geoplugin_regionName;
// if (@strlen($ipdat->geoplugin_city) >= 1)
// $address[] = $ipdat->geoplugin_city;
// $output = implode(", ", array_reverse($address));
// break;
// case "city":
// $output = @$ipdat->geoplugin_city;
// break;
// case "state":
// $output = @$ipdat->geoplugin_regionName;
// break;
// case "region":
// $output = @$ipdat->geoplugin_regionName;
// break;
// case "country":
// $output = @$ipdat->geoplugin_countryName;
// break;
// case "countrycode":
// $output = @$ipdat->geoplugin_countryCode;
// break;
// }
// }
// }
// return $output;
// }
// if($country['country'] == 'India' AND $country['state'] == 'National Capital Territory of Delhi' || 'Jammu and Kashmir'){
// }
// else{
// header('location: https://www.google.com/');
// }