open('../application/libraries/ip2location/IP2PROXY-LITE-PX8.BIN', \IP2Proxy\Database::FILE_IO);
$dbl=mysqli_connect("localhost","linksclo_dbu","f1snU]!Xu,fz");
mysqli_select_db($dbl,"linksclo_newdb");
//print_r($_GET);
if(strpos($_GET['dlink'], "?") !== false)
{
$utt=1;
}
if($_GET['proxy_terminal']!='')
{
$_GET['ip']= $_GET['proxy_terminal'];
}
$parser=0;
function systemInfo($br)
{
$user_agent = $br;
$os_platform = "Windows";
$os_array = array('/windows phone 8/i' => 'Windows Phone 8',
'/windows phone os 7/i' => 'Windows Phone 7',
'/windows nt 6.3/i' => 'Windows 8.1',
'/windows nt 6.2/i' => 'Windows 8',
'/windows nt 6.1/i' => 'Windows 7',
'/windows nt 6.0/i' => 'Windows Vista',
'/windows nt 10.0/i' => 'Windows 10',
'/windows nt 5.2/i' => 'Windows Server 2003/XP x64',
'/windows nt 5.1/i' => 'Windows XP',
'/windows xp/i' => 'Windows XP',
'/windows nt 5.0/i' => 'Windows 2000',
'/windows me/i' => 'Windows ME',
'/win98/i' => 'Windows 98',
'/win95/i' => 'Windows 95',
'/win16/i' => 'Windows 3.11',
'/macintosh|mac os x/i' => 'Mac OS X',
'/mac_powerpc/i' => 'Mac OS 9',
'/linux/i' => 'Linux',
'/ubuntu/i' => 'Ubuntu',
'/iphone/i' => 'iPhone',
'/ipod/i' => 'iPod',
'/ipad/i' => 'iPad',
'/android/i' => 'Android',
'/tablet/i' => 'tablet',
'/blackberry/i' => 'tablet',
'/ipad/i' => 'tablet',
'/tablet.*firefox/i' => 'tablet',
'/webos/i' => 'Mobile');
$found = false;
$device = '';
foreach ($os_array as $regex => $value)
{
if($found)
exit();
else if (preg_match($regex, $user_agent))
{
$os_platform = $value;
$device = !preg_match('/(windows|mac|linux|ubuntu)/i',$os_platform)
?'MOBILE':(preg_match('/phone/i', $os_platform)?'MOBILE':'Desktop');
}
}
$device = !$device? 'Desktop':$device;
return array('os'=>$os_platform,'device'=>$device);
}
function getBrowser($br) {
$u_agent = $br;
$bname = 'Google Chrome';
$platform = 'windows';
$version= "";
if (preg_match('/linux/i', $u_agent)) {
$platform = 'linux';
}elseif (preg_match('/macintosh|mac os x/i', $u_agent)) {
$platform = 'mac';
}elseif (preg_match('/windows|win32/i', $u_agent)) {
$platform = 'windows';
}
if(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent)){
$bname = 'Internet Explorer';
$ub = "MSIE";
}elseif(preg_match('/Firefox/i',$u_agent)){
$bname = 'Mozilla Firefox';
$ub = "Firefox";
}elseif(preg_match('/OPR/i',$u_agent)){
$bname = 'Opera';
$ub = "Opera";
}elseif(preg_match('/Chrome/i',$u_agent) && !preg_match('/Edge/i',$u_agent)){
$bname = 'Google Chrome';
$ub = "Chrome";
}elseif(preg_match('/Safari/i',$u_agent) && !preg_match('/Edge/i',$u_agent)){
$bname = 'Apple Safari';
$ub = "Safari";
}elseif(preg_match('/Netscape/i',$u_agent)){
$bname = 'Netscape';
$ub = "Netscape";
}elseif(preg_match('/Edge/i',$u_agent)){
$bname = 'Edge';
$ub = "Edge";
}elseif(preg_match('/Trident/i',$u_agent)){
$bname = 'Internet Explorer';
$ub = "MSIE";
}
$known = array('Version', $ub, 'other');
$pattern = '#(?' . join('|', $known) .
')[/ ]+(?[0-9.|a-zA-Z.]*)#';
if (!preg_match_all($pattern, $u_agent, $matches)) {
}
$i = count($matches['browser']);
if ($i != 1) {
if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){
$version= $matches['version'][0];
}else {
$version= $matches['version'][1];
}
}else {
$version= $matches['version'][0];
}
if ($version==null || $version=="") {$version="?";}
return array(
'userAgent' => $u_agent,
'name' => $bname,
'version' => $version,
'platform' => $platform,
'pattern' => $pattern
);
}
//$exx=explode("?",$_GET['dlink']);
if(strpos($_GET['dlink'], "?alalbaba=") !== false || strpos($_GET['dlink'], "?tatakaka=") !== false )
{
$exx=explode("?",$_GET['dlink']);
$exx=explode("fbclid",$exx[0]);
$elk=str_replace("http://","https://",$exx[0]);
$elk3=str_replace("https://","http://",$exx[0]);
$elk8=str_replace("www.","",$exx[0]);
$elk2=substr($exx[0], 0, -1);
$elk21=str_replace("http://","https://",$elk2);
$elk22=str_replace("https://","http://",$elk2);
$q="select * from link_data where slug='".$exx[0]."' || slug='".$elk."' || slug='".$elk2."' || slug='".$elk3."' || slug='".$elk22."' || slug='".$elk21."' || slug like '%".$_GET['dlink']."%' || slug='".$elk8."' order by id desc";
$rs=mysqli_query($dbl,$q);
//echo mysqli_num_rows($db1,$q);
//$q="select * from link_data where slug='".$exx[0]."' || slug='".$elk."' || slug='".$elk2."' || slug='".$elk3."' || slug='".$elk22."' || slug='".$elk21."' || slug like '%".$_GET['dlink']."%' || slug='".$elk8."'";
}
else if($utt==1)
{
$exx=explode("?",$_GET['dlink']);
$elk=str_replace("http://","https://",$exx[0]);
$elk3=str_replace("https://","http://",$exx[0]);
$elk8=str_replace("www.","",$exx[0]);
$elk2=substr($exx[0], 0, -1);
$elk21=str_replace("http://","https://",$elk2);
$elk22=str_replace("https://","http://",$elk2);
$q="select * from link_data where slug='".$exx[0]."' || slug='".$elk."' || slug='".$elk2."' || slug='".$elk3."' || slug='".$elk22."' || slug='".$elk21."' || slug like '%".$_GET['dlink']."%' || slug='".$elk8."' order by id desc";
}
else
{
$exx=$_GET['dlink'];
$elk=str_replace("http://","https://",$exx);
$elk3=str_replace("https://","http://",$exx);
$elk8=str_replace("www.","",$exx);
$elk2=$exx;
$elk21=str_replace("http://","https://",$elk2);
$elk22=str_replace("https://","http://",$elk2);
$q="select * from link_data where slug='".$exx."' || slug='".$elk."' || slug='".$elk2."' || slug='".$elk3."' || slug='".$elk22."' || slug='".$elk21."' || slug='".$elk8."' order by id desc";
}
$rs=mysqli_query($dbl,$q);
mysqli_num_rows($rs);
if(mysqli_num_rows($rs)==0)
{
echo $html="";
//echo"s";
exit();
}
$rd=mysqli_fetch_object($rs);
//echo $rd->id;
$usw="select * from user where id='".$rd->user_id."'";
$usws=mysqli_query($dbl,$usw);
$uswsd=mysqli_fetch_object($usws);
$ccmm=$uswsd->campaign_hit-1;
if($uswsd->campaign_hit==0 && $uswsd->id!='852')
{
echo"Your Cloaker Hits are exceed ! Please contact Administrator";
exit();
}
mysqli_query($dbl,"update user set campaign_hit='".$ccmm."' where id='".$rd->user_id."'");
if($rd->safe_page_type==0 || $_GET['platform']=="wordpress")
{
$_GET['platform']="wordpress";
}
else
{
$_GET['platform']="";
}
/*******************************************start review notification***************************************************************************/
if($rd->hts_ck!=0)
{
// $hit_cal=$rd->hits+$rd->urr_hits+$rd->mac_hits;
if($rd->hts_ck<=1 && $rd->hitbase_pause==1)
{
mysqli_query($dbl,"update link_data set sts='0',hts_ck='0' where id='$rd->id'");
$mail = new PHPMailer;
//$mail->isSMTP();
$mail->Host = 'mail.linkscloaking.com';
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = 'support@linkscloaking.com';
$mail->Password = '_ZJ6[Ls(c0vA';
$mail->setFrom('support@linkscloaking.com','Linkscloaking');
$mail->addReplyTo('replyto@linkscloaking.com', 'Linkscloaking Reply');
$mail->addAddress($rd->em_noti);
$mail->Subject = 'Campaign Active Notification';
$msg = "Your Requested Campaign (".$rd->slug.") is active now.";
$mail->msgHTML($msg);
$mail->send();
}
if($rd->hts_ck!=0)
{
$hts_ck=$rd->hts_ck-1;
mysqli_query($dbl,"update link_data set hts_ck='".$hts_ck."' where id='$rd->id'");
}
}
/***********************************************end of review notification***********************************************************************/
$ddy=date('Y');
$ddm=date('m');
if ( !is_dir("../log_files/".$rd->user_id ) )
{
mkdir("../log_files/".$rd->user_id,0755);
}
$fp420=fopen("../log_files/".$rd->user_id."/".$rd->id.".txt",'a');
$fiza_dt=date('d F Y');
$fiza_tm=date('h:i:s');
$masoomlogcity=file_get_contents("http://linkscloaking.com/welcome/myc/".$_GET['ip']);
$useragent123=base64_decode($_GET['rbt']);
$ua=getBrowser($useragent123);
$uuaa=systemInfo($useragent123);
fwrite($fp420,",".$_GET['ip']."/".$masoomlogcity."/".$ua['name']."/".$uuaa['os']."/".$uuaa['device']."/".$fiza_dt."/".$fiza_tm);
/***************Block ip if setup by user*****************************/
if($rd->blocked_ips!='')
{
$blockg=0;
$eds=explode(",",$rd->blocked_ips);
for($i=0;$iads_utm==1)
{
if(strpos($_GET['dlink'], "?gclid=") === false && strpos(base64_decode($_GET['rf']), "?gclid=") === false && strpos(base64_decode($_GET['rf']), "ohost=") === false && strpos(base64_decode($_GET['rf']), "aclk?") === false)
{
exit();
}
}
/*************ip block on demand***************/
if($rd->block_ip_state==1 && $rd->sts!=0)
{
if($rd->reff=="Google AdWord")
{
$lccr="gl";
}
if($rd->reff=='Facebook')
{
$lccr='fb';
}
$usw5="insert into iplist(ip,src,itype,user_id,sts,dt)values('".$_GET['ip']."','".$lccr."','1','".$rd->user_id."','1',now())";
$usws5=mysqli_query($dbl,$usw5);
}
if($rd->block_ip_state==1)
{
$ipb_test="select * from iplist where ip='".$_GET['ip']."' and sts='1'";
$ipb_test_rs=mysqli_query($dbl,$ipb_test);
if(mysqli_num_rows($ipb_test_rs)!=0)
{
exit();
}
}
/************************************************GEO Allow System**********************************************************************/
if($rd->sts==0)
{
if($rd->allcon==1 || $rd->con=="")
{
$masoomlink=$rd->main_link;
}
if($rd->allcon==0 && $rd->con=="")
{
$masoomlink=$rd->main_link;
}
$g="select * from user where id='$rd->user_id'";
$gs=mysqli_query($dbl,$g);
$gd=mysqli_fetch_object($gs);
if($gd->pay!=1)
{
if($rd->con!="" && $rd->allcon!=1)
{
$ex=explode(",",$rd->con);
if($rd->user_id==910 || $rd->user_id==91 || $rd->user_id==847 || $rd->user_id==991)
{
/*echo $_GET['ip'];
exit;*/
$location=file_get_contents("http://ip-api.com/json/".$_GET['ip']);
$parsedJson = json_decode($location);
$cntry=$parsedJson->country;
//echo $_GET['ip'];
//exit;
}
else
{
$location=file_get_contents("https://linkscloaking.com/get-location/".$_GET['ip']);
$parsedJson = json_decode($location);
$cntry=$location;
}
$hoho=0;
// break;
for($k=0;$kmain_link;
//exit;
}
else
{
if($_GET['serve']=="js")
{
echo"amaz";
}
else
{
$masoomlink=$rd->redirector_link;
$platform_country=1;
if($_GET['platform']=="wordpress")
{
exit();
}
}
}
}
}
else
{
$ff="select * from our_link";
$ffs=mysqli_query($dbl,$ff);
$ffd=mysqli_fetch_object($ffs);
$llllk=$rd->redirector_link;
echo"";
}
}
/********************************************End GEO**************************************************************************/
$mainlink=$masoomlink;
$safe_page=$rd->redirector_link;
$useragent=base64_decode($_GET['rbt']);
/************if mobile money page active*****************/
if($rd->urr_mob!="")
{
if(preg_match('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|e\\-|e\\/|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\\-|2|g)|yas\\-|your|zeto|zte\\-/i',substr($useragent,0,4)))
{
$mainlink=$rd->urr_mob;
}
}
if(preg_match('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|e\\-|e\\/|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\\-|2|g)|yas\\-|your|zeto|zte\\-/i',substr($useragent,0,4)))
{
$mhits=$rd->urr_hits+1;
$parser=1;
$counter_active=1;
mysqli_query($dbl,"update link_data set urr_hits='$mhits' where id='$rd->id'");
}
/************if mac money page active*****************/
if($rd->urr_mac!="")
{
if(preg_match('/macintosh|mac os x/i',substr($useragent,0,4)))
{
$mainlink=$rd->urr_mac;
}
}
if(preg_match('/macintosh|mac os x/i',substr($useragent,0,4)))
{
$mhits=$rd->mac_hits+1;
$parser=1;
$counter_active=1;
mysqli_query($dbl,"update link_data set mac_hits='$mhits' where id='$rd->id'");
}
$dev_exp=explode(",",$rd->allowed_dv);
/***************************desktop allowed***************************************/
/*
$dex=0;
$mob=0;
$mac=0;
if(in_array("Desktops & Laptops",$dev_exp))
{
if(preg_match('/windows|win32/i',$useragent))
{
$dex=1;
}
}
if(in_array("Mobile Phones",$dev_exp))
{
if(preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($useragent,0,4)))
{
$mob=1;
}
}
if(in_array("Apple Mac OS",$dev_exp))
{
if(preg_match('/macintosh|mac os x/i',substr($useragent,0,4)))
{
$mac=1;
}
}
if($dex==1)
{
$mainlink=$masoomlink;
$dex=1;
}else{if($mob!=1){$mainlink=$safe_page;break;}}
if($mob==1)
{
if($rd->urr_mob!="")
{
$mainlink=$rd->urr_mob;
}
else
{
$mainlink=$masoomlink;
}
}
else{if($dex!=1){$mainlink=$safe_page;break;}}
if($mac==1)
{
$mainlink=$mainlink;
}
else{if($dex!=1 && $mob!=1){$mainlink=$safe_page;break;}}
*/
if($rd->block_con!='')
{
$ex=explode(",",$rd->block_con);
$location=file_get_contents("https://linkscloaking.com/get-location/".$_GET['ip']);
$parsedJson = json_decode($location);
$cntry=$location;
$hoho=0;
for($k=0;$kmain_link;
}
}
if($rd->isp!="")
{
$ispw = file_get_contents('http://ip-api.com/json/'.$_GET['ip']);
$a = explode('"isp"',$ispw);
$b = explode('"',$a[1]);
$ex=explode(",",$rd->isp);
$hoho1=0;
$vv=json_decode($ispw);
if (strpos($vv->isp, $rd->isp) !== false)
{
$hoho1=1;
}
else
{
$hoho1=0;
}
if($hoho1==1)
{
$masoomlink=$rd->main_link;
}
else
{
if($_GET['serve']=="js")
{
echo"amaz";
exit();
}
else
{
$masoomlink=$rd->redirector_link;
exit();
}
}
}
if($rd->block_isp!="")
{
$ispw = file_get_contents('http://ip-api.com/json/'.$_GET['ip']);
$a = explode('"isp"',$ispw);
$b = explode('"',$a[1]);
$ex=explode(",",$rd->block_isp);
$hoho1=0;
$vv=json_decode($ispw);
if (strpos($vv->isp, $rd->block_isp) !== false)
{
$hoho2=0;
}
else
{
$hoho2=1;
}
if($hoho2==1)
{
$masoomlink=$rd->main_link;
}
else
{
if($_GET['serve']=="js")
{
echo"amaz";
exit();
}
else
{
$masoomlink=$rd->redirector_link;
exit();
}
}
}
if($rd->allowed_dv=="mobile")
{
if(preg_match('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|e\\-|e\\/|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\\-|2|g)|yas\\-|your|zeto|zte\\-/i',substr($useragent,0,4)))
{$mainlink=$mainlink;}else{if($_GET['serve']=="js"){echo"amaz";exit();}else{$mainlink=$safe_page;exit();}}
}
if($rd->allowed_dv=="mac")
{
if(preg_match('/macintosh|mac os x/i',substr($useragent,0,4))){$mainlink=$mainlink;}else{if($_GET['serve']=="js"){echo"amaz";exit();}else{$mainlink=$safe_page;exit();}}
}
if($rd->allowed_dv=="dex")
{
if(preg_match('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|e\\-|e\\/|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\\-|2|g)|yas\\-|your|zeto|zte\\-/i',substr($useragent,0,4)))
{
if($_GET['serve']=="js"){echo"amaz";exit();}else{$mainlink=$safe_page;exit();}
}
}
/*
if($rd->user_id=="529")
{
if($_GET['prt']==8077)
{
$mainlink=$masoomlink;
}
else
{
$mainlink=$rd->redirector_link;
}
}
*/
//include("/etc/linuxdev.php");
//include("linuxdev.php");
if($rd->prox=="1")
{
$records = $db->getAll($_GET['ip']);
if($records['isProxy']==1)
{
$mainlink=$safe_page;exit();
}
else
{
$mainlink=$mainlink;
}
}
/*
if($rd->utm_parameter!='' && $rd->utt==1)
{
$eff=explode($rd->utm_parameter,$_GET['dlink']);
$mainlink=$mainlink."?".$rd->utm_parameter."".$eff[1];
//echo $mainlink;
//break;
}
*/
if($rd->trackr==1)
{
$gg=explode("?",$_GET['trk']);
$mainlink=$mainlink."?".$gg[1];
}
/*
if(strpos($_GET['dlink'], "?fbclid=") !== false )
{
$mainlink=$rd->redirector_link;
}
*/
//echo $mainlink;
//exit();
/*
echo $mainlink;
exit();
*/
//echo $rd->utm_parameter;
if($rd->utm_parameter!='')
{
$e=explode(",",$rd->utm_parameter);
$fparm="";
$eff=explode("?",$_GET['dlink']);
$ajcheck=0;
$e[0]=$eff[1]."&";
for($i=0;$iifram==1)
{
if ($_GET['ip4'] == 'iframe')
{
$mainlink=$rd->redirector_link;
exit();
}
}
include("linuxdev.php");
?>