Файл: zagruz/zagruz/java.php
Строк: 85
<?php
include 'head.php';
ini_set('display_errors',0); ini_set ('register_globals', 0);
session_name('SID'); session_start();
##############################################
##############################################
$host= "ka4ka.ru"; $path="/java/?".$_SERVER ['QUERY_STRING'];
$fp=fsockopen($host,80,$errno, $errstr,10);
if(!$fp) { echo "$errstr ($errno)<br/>n"; }else{
$data = "";$post=0; foreach($_POST as $key=>$value){
$post=1; $data.="&$key=$value";} if($data)$data=substr ($data,1);
if($post) $headers = "POST $path HTTP/1.0rn";else
$headers = "GET $path HTTP/1.0rn"; $headers.= "Host: $hostrn";
$headers.= "Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif,image/x-bitmap, */*;q=0.1rn";
$headers.= "Accept-Charset: utf-8;q=0.6 windows-1251;q=0.1*;q=0.1rn";
$headers.= "Accept-Encoding: utf-8rn";
$headers.= "Accept-Language: ru, en;q=0.9rn";
$headers.= "User-Agent: ".$_SERVER ['HTTP_USER_AGENT']."rn";
if($post){ $headers.= "Content-type: application/x-www-form-urlencodedrn";
$headers.= "Content-Length: ".strlen ($data)."rn";
$headers.= "rn"; $headers.= $data;}else $headers.="rn";
@fwrite($fp, $headers); while($file != "rn") $file = @fgets($fp, 128);
$file = ''; while(!feof($fp)) $file.= @fgets($fp, 4096); @fclose($fp); }
##############################################
////////////////
$file = preg_replace('/<a href="http://play.ka4ka.ru/(.*?)</a><br />/si','',$file);
$file=str_replace('http://play.ka4ka.ru/download.php','/',$file);
////////////////
$file = preg_replace('/<a href="http://wapgd.playfon.ru/(.*?)</a><br />/si','',$file);
$file = preg_replace('/<a href="http://wapgd5v.playfon.ru/(.*?)</a><br />/si','',$file);
$file = str_replace('/<a href="', ' / <a href="',$file);
$file = str_replace('<img src="/content/', '<img src="http://kachka.ru/content/',$file);
$file = str_replace('<a href="/?', '<a href="?',$file);
$file = str_replace('<?xml version="1.0" encoding="utf-8"?>', '',$file);
$file = str_replace('<img src="/code.php', '<img src="http://kachka.ru/code.php',$file);
$file = str_replace('Нарезать на звонок', '',$file);
$file=preg_replace('|<!DOCTYPE(.*?)</head>|is', '',$file);
$file=str_replace('<body style="color: #000000;"><div class="body"><div style="background-color: #84c225;padding: 2px;"></div><div style="background-color: #F3F3F3;border-top: 1px dotted;border-top: 1px dotted;border-bottom: 1px dotted;">', '', $file);
$file=preg_replace('|<a href="http://ka4ka.ru/vipc/(.*?)</a></div>|is', '<div>', $file);
$file=str_replace('<a href="/java/', '<a href="java.php', $file);
$file=str_replace('ka4ka=', 'sid=', $file);
$file = str_replace('(', '<font color=red>(',$file);
$file = str_replace(')', ')</font>',$file);
$file=str_replace('<span style="color: #84c225;">', '<span style="color: #cc0000;">', $file);
$file=preg_replace('|<a href="/all-music/(.*?)<span class="wlink">|is', '<br/>',$file);
$file=preg_replace('|<a href="/email.php(.*?)</a><br />|is', '',$file);
$file=str_replace('<div style="line-height:5px;">', '', $file);
$file=str_replace('http://c.waplog.net/ru/57036.cnt', 'waplog', $file);
$file=str_replace('waplog', '', $file);
$file=str_replace('Главная', '', $file);
$file=preg_replace('|<a href="http://wap.ka4ka.ru/stata/(.*?)</a><br />|is', '',$file);
$file=preg_replace('|<a href="http://wap.ka4ka.ru/stata/(.*?)</a>|is', '',$file);
$file=preg_replace('|<div class="header" style="font-size: 11px; text-align: left">(.*?)</html>|is', '',$file);
$file=preg_replace('|<div class="header">(.*?)</div>|is', '',$file);
$file=preg_replace('|<div class="other">(.*?)</div>|is', '',$file);
$file=str_replace('<body style="color: #000000;"><div class="body"><div style="background-color: #84c225;padding: 2px;"></div>', '', $file);
$file=str_replace('index.php', '', $file);
$file=str_replace('<div style="background-color: #F3F3F3;border-top: 1px dotted;border-top: 1px dotted;border-bottom: 1px dotted;">', '', $file);
$file=str_replace('<span style="color: green;">', '<span style="color: navy;">', $file);
$file=str_replace('/charts', 'charts.php', $file);
$file=str_replace('/songs', 'songs.php', $file);
$file=preg_replace('|Перейти на(.*?)</form>|is', '',$file);
$file=preg_replace('|<a href="http://wapgd.playfon.ru/(.*?)</a>|is', '',$file);
$file = str_replace('<a href="/java/id/', '<a href="?dc_id=',$file);
$file=str_replace('./?sid', 'java.php?sid', $file);
$file=str_replace('б)<br /><a href="?dc_id', 'б)<br /><a href="http://ka4ka.ru/java/?dc_id', $file);
$file=str_replace('/java/index.php', '',$file);
$file=str_replace('/?view=rate', '?view=rate', $file);
$file=preg_replace('|<a href="/java&sid=(.*?)<div class="body"></div></div>|is', '',$file);
$file=str_replace('<a href="/java/?', '<a href="?', $file);
$file=str_replace('144<br /><a href="?dc_id=', '144<br /><a href="http://ka4ka.ru/java/?dc_id=', $file);
$file=str_replace('/?mod=', '&mod=', $file);
$file = preg_replace('/<a href="http://play.ka4ka.ru/(.*?)</a><br />/si','',$file);
$file=str_replace('alt="." /><br /><a href="?dc_id=', 'alt="." /><br /><a href="http://ka4ka.ru/java/?dc_id=', $file);
$file=str_replace('б)</a> --><a href="?dc_id=', 'б)</a> --><a href="http://ka4ka.ru/java/?dc_id=', $file);
$file=str_replace('<form action="" method="get">', '<form action="java.php" method="get">', $file);
$file=str_replace('<form action="" method="post">', '<form action="http://ka4ka.ru/java/" method="post">', $file);
$file=str_replace('<a style="color: green;" href="/java', '<a href="http://ka4ka.ru/java', $file);
$file=preg_replace('|<div style="(.*?)">|is', '<div>',$file);
$file=str_replace('<img src="/img/markers.gif" alt="." />', '» ', $file);
$file=str_replace('<img src="./img/zve.gif', '<img src="http://ka4ka.ru/java/img/zve.gif', $file);
$file=str_replace('<img src="./img/rat.gif', '<img src="http://ka4ka.ru/java/img/rat.gif', $file);
$file=str_replace('&mod=dnl', '/?mod=dnl', $file);
##############################################
echo $file;
include 'foot.php';
?>