View file h2w/h2w.php

File size: 1.52Kb
<?php

include 'config.php';

header("Content-type:text/html;charset=utf-8");

$host = "wap4u.ru";
$path = "/h2w/h2w.php?$QUERY_STRING";
$fp = fsockopen($host,80,$errno,$errstr,30);
if(!$fp) echo"$errstr ($errno)<br />\n";
else{
$headers = "GET $path HTTP/1.0\r\n";
$headers .= "Host: $host\r\n";
$headers .= "Accept: *\r\n";
$headers .="Accept-Charset: UTF-8\r\n";  // <<====
$headers .= "Accept-Charset: *\r\n";
$headers .= "Accept-Encoding: deflate\r\n";
$headers .= "Accept-Language: ru\r\n";
$headers .= "User-Agent: SonyEricssonK510i/R4CH Browser/NetFront/3.3 Profil Opera 8.01\r\n\r\n";
fwrite($fp,$headers);
while($page_result != "\r\n") $page_result = fgets($fp,128);
$page_result = "";
while(!feof($fp)) $page_result .= fgets($fp,4096);
fclose($fp);
}
$page_result = str_replace('Blade',"<b>$nik</b>",$page_result);

$page_result = str_replace('blade.fklab.com',"<b>$www</b>",$page_result);

$page_result = str_replace('[email protected]',"<b>$mail</b>",$page_result);

$page_result = str_replace('14746795',"<b>$ICQ</b>",$page_result);

$page_result = str_replace('<img src="/h2w/h2w.php?',"<img src=\"http://wap4u.ru/h2w/h2w.php?",$page_result);



$page_result = preg_replace('/<a href="http:\/\/wap4u.ru\/">&#x041d;&#x0430; &#x0433;&#x043b;&#x0430;&#x0432;&#x043d;&#x0443;&#x044e;<\/a><br\/>/si',"<br/><small>$copy<a href=\"http://$site\">$name</a><br/>$statistic</small><br/>",$page_result);

$page_result = preg_replace('/<img src="counter_h2w.php" alt="counter"\/>/si',"",$page_result);


echo $page_result;


?>