<?php
define('_IN_JOHNCMS', 1);
$headmod = 'multy search | laguan.tk';
$textl = 'multy search | laguan.tk';
include "header.php";
ini_set('display_errors',0); ini_set('register_globals', 0);
$host= "indonet.tk"; $path="/initiate.php?".$_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.0\r\n";else
$headers = "GET $path HTTP/1.0\r\n"; $headers .= "Host: $host\r\n";
$headers .= "Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif,image/x-bitmap, */*;q=0.1\r\n";
$headers .= "Accept-Charset: utf-8;q=0.6 windows-1251;q=0.1*;q=0.1\r\n";
$headers .= "Accept-Encoding: utf-8\r\n";
$headers .= "Accept-Language: ru, en;q=0.9\r\n";
$headers .= "User-Agent: ".$_SERVER['HTTP_USER_AGENT']."\r\n";
if($post){ $headers .= "Content-type: application/x-www-form-urlencoded\r\n";
$headers .= "Content-Length: ".strlen ($data)."\r\n";
$headers .= "\r\n"; $headers .= $data;}else $headers.="\r\n";
@fwrite($fp, $headers); while($file != "\r\n") $file = @fgets($fp, 128);
$file = ''; while(!feof($fp)) $file .= @fgets($fp, 4096); @fclose($fp); }
$file=preg_replace('|<!DOCTYPE(.*)</form></div>|sU', '',$file);
$file=preg_replace('|<div class="sub">(.*)</div>|sU', '',$file);
$file=str_replace('Tags list','Tags list<img style="display:none;" src="http://daylogs.com/counter/asepsite.gif?v=small" width="1" height="1" alt="+">',$file);
$file=str_replace('links','list',$file);
$file=str_replace('header','up',$file);
$file=str_replace('gmb/cp.png','http://loadtrick.wap.sh/icon/list.png/',$file);
$file=str_replace('gmb/next.png','http://wapload.yn.lt/images/list.png',$file);
$file=str_replace('gmb/mp3.png','http://loadtrick.wap.sh/icon/list.png',$file);
$file=str_replace('gmb/mp4.png','http://loadtrick.wap.sh/icon/list.png',$file);$file=str_replace('xml_api.php','search.php',$file);
$file=str_replace('nolog.php','dnld.php',$file);
$file=str_replace('initiate.php','download.php',$file);
$file=preg_replace('|<div class="title">(.*?)</html>|is','',$file);
echo $file;
include "footer.php";
?>