Вход Регистрация
Файл: poisk_mp3.php
Строк: 102
<?php
include_once 'sys/inc/start.php';
include_once 
'sys/inc/compress.php';
include_once 
'sys/inc/sess.php';
include_once 
'sys/inc/home.php';
include_once 
'sys/inc/settings.php';
include_once 
'sys/inc/db_connect.php';
include_once 
'sys/inc/ipua.php';
include_once 
'sys/inc/fnc.php';
include_once 
'sys/inc/user.php';
$set['title']='Поиск mp3';
include_once 
'sys/inc/thead.php';
title();

# загрузка файла
$gdir=isset($_GET['d']);
if(!
$gdir$gdir '/mp3/allsearch/?'.$_SERVER ['QUERY_STRING'];
if(
preg_match('/get_/i'$gdir)){
    
$gdir str_replace('d=/''/'$_SERVER['QUERY_STRING']);
    
header("Location: http://load.pux.su$gdir"); exit;

   }

ini_set('display_errors',0); ini_set ('register_globals'0);
session_name('SID'); session_start();
##############################################
##############################################
$host"o5wap.ru";
$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 $gdir HTTP/1.0rn";else
$headers "GET $gdir 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($fp128);
$file ''; while(!feof($fp)) $file.= @fgets($fp4096); @fclose($fp); }
##############################################
$file=preg_replace('|<!DOCTYPE HTML PUBLIC(.*?)Музыка</a>/|is','<div class="title">Музыка/',$file);
$file=str_replace('<form action="/mp3/allsearch/','<form action="?'$file);
$file=str_replace('<a href="','<a href="?d='$file);
$file=str_replace('value="/Flash/','value="http://o5wap.ru/Flash/'$file);
$file=str_replace('value="/Flash/','value="http://o5wap.ru/Flash/'$file);
$file=str_replace('<embed src="/Flash/','<embed src="http://o5wap.ru/Flash/'$file);
$file=str_replace('codebase="/Flash/','codebase="http://o5wap.ru/Flash/'$file);
$file=str_replace('?file=/content','?file=http://o5wap.ru/content'$file);
$file=str_replace('<a href="?d=/mp3/allsearch/?Page','<a href="?Page'$file);
$file=preg_replace('|<img class="icon" src="/Images/1/setting(.*?)</body>|is','',$file);
$file=preg_replace('|</form>(.*?)</body>|is','</form>',$file);
$file=preg_replace('|Обновить</a></b>(.*?)</html>|is','Обновить</a></b>',$file);
$file=str_replace('<img class="icon" src="/Images/1/','<img class="icon" src="http://o5wap.ru/Images/1/'$file);
$file=str_replace('<img class="icon" src="http://o5wap.ru/Images/1/dwn.gif','<img class="icon" src="/zagruz/img/poisk.png'$file);
$file=str_replace('<a href="?d=/content/','<a href="http://o5wap.ru/content/'$file);
$file=str_replace('<div class="f1">','<div class="rowup2">'$file);

$file=str_replace('<form action=""><input type="hidden','<div class="foot"><form action=""><input type="hidden'$file);

##############################################
echo $file;
include_once 
'sys/inc/tfoot.php';
?>
Онлайн: 0
Реклама