Вход Регистрация
Файл: umor/prikol/index.php
Строк: 76
<?php
//error_reporting(0);
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']='Приколы';
include_once 
'../../sys/inc/thead.php';
title();
err();
//aut();

$host 'kengu.ru';
$path '/humchat.php?'.$_SERVER['QUERY_STRING'];

$fp fsockopen($host80$errno$errstr10);
if(!
$fp) {
echo 
'Сервис временно не доступен<br/>';
}
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: */*rn";
$headers .= "Accept-Charset: UTF-8rn";
$headers .= "Accept-Language: rurn";
$headers .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; ru) Opera 8.01rn";
if(
$post){
$headers .= "Content-type: application/x-www-form-urlencodedrn";
$headers .= "Content-Length: ".iconv_strlen($data'UTF-8')."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("/^.*?<body>/",'',$file);
$file=substr($file,strpos($file,'<body>')+6);
$file=preg_replace("/<(/|)div.*?>/",'',$file);
$file=preg_replace("/<(/|)span.*?>/",'',$file);
$file=preg_replace("/style=".*?"/",'',$file);
$file=preg_replace("/&gt;</a>/",'$0<br>',$file);
$file=preg_replace("/&#169; KENGU.RU 2006-2007/",'',$file);
$file=str_replace('<a href="http://kengu.ru" >На главную</a>','',$file);
$file=str_replace('humchat','index',$file);
$file=substr($file,0,strrpos($file,'</a>')+4);
$file str_replace('<img src="http://kengu.ru/sample.gif" alt='counter'/>','',$file);

header('Content-type: text/html; charset=UTF-8');
echo 
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>приколы</title>
</head>
<body bgcolor="#003300" link="yellow" text="aqua">
'
.$file.'';

echo 
'<br />&#171; <a href="../" >К разделу "Юмор"</a>';
include_once 
'../../sys/inc/tfoot.php';
?>
Онлайн: 1
Реклама