"com" ) { if ($surl1) { header("location: https://my-ip-is.com/$surl1"); exit; } header("location: https://my-ip-is.com"); exit; } if ( strtolower( $_SERVER['SERVER_NAME'] )=="www.ip-trace.com" or strtolower( $_SERVER['SERVER_NAME'] )=="ip-trace.com") { if ($surl1) { header("location: https://my-ip-is.com/$surl1"); exit; } header("location: https://my-ip-is.com"); exit; } $con = "https://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}"; if ( substr ( $_SERVER['SERVER_NAME'],0,3 ) == "www" ) { $_SERVER['SERVER_NAME']=str_replace("www.","",$_SERVER['SERVER_NAME']); if ($surl1) { header("location: https://{$_SERVER['SERVER_NAME']}/$surl1"); exit; } header("location: https://{$_SERVER['SERVER_NAME']}"); exit; } if ( !$_SERVER['HTTP_CF_CONNECTING_IP'] ) { $_SERVER['HTTP_CF_CONNECTING_IP']=$_SERVER["REMOTE_ADDR"]; } if ( $_SERVER['HTTP_X_FORWARDED_FOR'] ) { $pieces = explode(",", $_SERVER['HTTP_X_FORWARDED_FOR']); $_SERVER['HTTP_CF_CONNECTING_IP']=$pieces[0]; } if (!$surl1 and $_SESSION['firstredirect']<>1) { $_SESSION['firstredirect']=1; header("location: https://{$_SERVER['SERVER_NAME']}/{$_SERVER['HTTP_CF_CONNECTING_IP']}"); exit; } if ($surl1=="ip-lookup") { header("location: https://{$_SERVER['SERVER_NAME']}/{$_SERVER['HTTP_CF_CONNECTING_IP']}"); exit; } if ($surl1=="random-ip") { $ip = long2ip(mt_rand()); header("location: https://{$_SERVER['SERVER_NAME']}/{$ip}"); exit; } ## Save BrowsCap Info $BrowserInfo = get_browser(); $BrowserInfo_file_name = $_SERVER['DOCUMENT_ROOT']."/browserdata/{$_SERVER['HTTP_CF_CONNECTING_IP']}.json"; file_put_contents("$BrowserInfo_file_name",json_encode($BrowserInfo)); function numberToRomanRepresentation($number) { $map = array('M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400, 'C' => 100, 'XC' => 90, 'L' => 50, 'XL' => 40, 'X' => 10, 'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1); $returnValue = ''; while ($number > 0) { foreach ($map as $roman => $int) { if($number >= $int) { $number -= $int; $returnValue .= $roman; break; } } } return $returnValue; } if ($surl1=="roman-numerals") { if (!$surl2) { $surl2=$_SERVER['HTTP_CF_CONNECTING_IP']; } if ( strpos($surl2,":") >0 ) { $pieces = explode(":", $surl2); while(list($key, $value) = each($pieces)) { $value = hexdec($value); $romannumber = $romannumber.": ".numberToRomanRepresentation($value); } } else { $pieces = explode(".", $surl2); while(list($key, $value) = each($pieces)) { $romannumber = $romannumber.".".numberToRomanRepresentation($value); } } $romannumber=trim(substr($romannumber,1,100)); $title="Your IP in Roman Numerals is {$romannumber}"; $description="Your IP in Roman Numerals is {$romannumber}. My-Ip-Is.com is all about IP numbers"; include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/roman-numerals.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } if ($surl1=="calculator") { $title="IPv4 and IPv6 PHP Subnet Calculator"; $description="IPv4 and IPv6 PHP Subnet Calculator. Calculate your IP (sub)networks. My-Ip-Is.com is all about IP numbers"; include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/calculator.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } if ($surl1=="about") { $title="About MY-IP-IS.com"; $description="About MY-IP-IS.com. On this page you can find out what My-Ip-Is.com is all about."; include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/about.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } if ($surl1=="terms") { $title="terms MY IP IS dot Com"; $description="Terms and conditions of My Ip Is. On this page you can find out what the Terms and conditions of My-Ip-Is.com"; include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/termsofuse.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } if ($surl2=="geolocation") { $title="Geolocation of {$_SERVER['HTTP_CF_CONNECTING_IP']} - MY-IP-IS.com gelocation service"; $description="MY-IP-IS.com gelocation service. Geolocation of {$_SERVER['HTTP_CF_CONNECTING_IP']} - MY-IP-IS.com gelocation service."; include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/geolocation.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } if ($surl1=="ipv6adoptation") { $title="IPV 6 Adoptation overview - MY-IP-IS.com"; $description="World Wide IPV 6 Adoptation overview - MY-IP-IS.com gelocation service."; include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/ipv6adoptation.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } if ($surl1=="visitors-profile") { $title="Visitors Profile of - MY-IP-IS.com"; $description="The profile of all visitors (based on ip) on my-ip-is.com"; include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/browsedata.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } if ($surl1=="isp-list") { $file_name = $_SERVER['DOCUMENT_ROOT']."/data/isplist.txt"; $makeCache=false; if ( date ("Y-m-d", filemtime($file_name) ) <> date ("Y-m-d") ) { $makeCache=true; } if ($makeCache) { $dir = $_SERVER['DOCUMENT_ROOT']."/data/"; // Open a directory, and read its contents if (is_dir($dir)){ if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if (substr($file,-4)=="json" ) { $json = file_get_contents("./data/{$file}"); $data = json_decode($json, true); if ( $data['status']=="success" ) { if (trim($data['isp'])) { $isp_= str_replace(" ","_-_", strtolower(trim( $data['isp'])))."-".str_replace(" ","_-_", strtolower(trim( $data['country']))); $isplist["{$isp_}"]['ipnumbers']["{$data['query']}"]=$data['query']; $isplist["{$isp_}"]['isp']=$data; } } } } closedir($dh); } } ksort ( $isplist ); file_put_contents("$file_name",json_encode($isplist)); } else { $isplist = json_decode(file_get_contents("$file_name"), true); } $title="ISP List - Inernet Service Provider List - MY-IP-IS.com"; $description="ISP List - Internet Access Provider List - MY-IP-IS.com."; if ($surl2) { if ($surl3) { $byname="ISP starting with letter $surl3 -"; } $tit = ucwords( str_replace("_-_"," ",$surl2) ); $title= trim( "$byname $tit ISP on My Ip Access Provider List - MY-IP-IS.com" ); $description="$byname $tit on My Ip Access Provider List - Internet Service Provider List - MY-IP-IS.com."; } include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/isp-list.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } $con = "https://{$_SERVER['SERVER_NAME']}/{$_SERVER['HTTP_CF_CONNECTING_IP']}"; $printip="{$_SERVER['HTTP_CF_CONNECTING_IP']}"; if ($surl1) { $printip=$surl1; } $d = dir("./blogposts"); while (false !== ($entry = $d->read())) { #echo $entry."\n"; if (substr($entry,-4)=="html") { $filename = "./blogposts/$entry"; if (file_exists($filename)) { $timeStamp = date ("Y-m-d H:m:i", filemtime($filename)); } $blogpost["$timeStamp"]['filename']=$entry; $entry2 = str_replace("_"," ",$entry); $entry2 = str_replace("-"," ",$entry2); $entry2 = ucwords($entry2); $entry2 = str_replace(".html","",$entry2); $blogpost["$timeStamp"]['title']=$entry2; $entry3 = strtolower(str_replace(" ","-",$entry2)); $blogpost["$timeStamp"]['url']=$entry3; $blogurls["$entry3"]=1; } } krsort ( $blogpost ); list($realurl, $gone) = explode("?", $surl1); #print $value['url']."".$realurl."
"; if ($surl1=="blog" or $blogurls["{$realurl}"]) { if ($surl1=="blog") { $surl1="welcome-to-the-my-ip-blog"; } while(list($key, $value) = each($blogpost)) { if ($value['url']==$realurl) { $title=$value['title']; $filename=$value['filename']; $description="My IP is Blogposts. {$value['title']}.Check your IP Address at my-ip-is.com"; } } include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); $article="{$filename}"; print << END; include ( 'menu.php' ); print <<
Zer da nire IPa?
Azken mezuak


END; reset ( $blogpost ); while(list($key, $value) = each($blogpost)) { print <<{$value['title']}
($key)

END; } print <<
END; include ($_SERVER['DOCUMENT_ROOT']."/blogposts/{$article}"); print <<
END; include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } if ( substr($printip,0,1)<>"?" and $surl1) { if (!filter_var($printip, FILTER_VALIDATE_IP)) { header("HTTP/1.0 404 Not Found"); include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/404.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } } else { $printip=$_SERVER['HTTP_CF_CONNECTING_IP']; $surl1=$printip; } #print $_SESSION['firstredirect']; #print " - "; #print "surl: $surl1
"; if ( $_SESSION['firstredirect'] == 1 and !$url_array[0]) { $title="What Is My IP, Your Address IPv4 IPv6 Decimal on myip."; $description="Your public IPv4, IPv6 and Decimal is on myip! My IP address information shows location, city, region, country, ISP, Speed Test and GPS coordinates."; include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/homepage.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); exit; } $title="What Is My IP, Your Address IPv4 IPv6 Decimal on myip. {$printip}"; $description="Your public IPv4, IPv6 and Decimal {$printip} on myip! My IP address information shows location, city, region, country, ISP, Speed Test and GPS coordinates."; include ($_SERVER['DOCUMENT_ROOT'].'/top.php'); include ($_SERVER['DOCUMENT_ROOT'].'/display_ip.php'); include ($_SERVER['DOCUMENT_ROOT'].'/footer.php'); ?>