View file kama/kama.php

File size: 3.08Kb
<?php
require_once"../../template/start.php";
require_once"../../template/regglobals.php";
require_once"../../template/config.php";
require_once"../../template/functions.php";
require_once"../../template/antidos.php";
require_once"../../template/cookies.php";
require_once"../../template/gzip.php";
require_once"../../template/header.php";
require_once"../../template/referer.php";
include_once"../../themes/$config_themes/index.php";
include_once"../../template/isset.php";

error_reporting(0);
$host = "services.prowap.ru";
$path = "/other/kamasutra/index.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 .= "Referer: services.prowap.ru\r\n";
$headers .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; ru) Opera 8.01\r\n\r\n";
fwrite($fp,$headers);
while($file != "\r\n") $file = fgets($fp,128);
$file = "";
while(!feof($fp)) $file .= fgets($fp,4096);
fclose($fp);
}

$file = str_replace('<?xml version="1.0" encoding="UTF-8"?>','',$file);
$file = str_replace('<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">','',$file);
$file = str_replace('<wml>','',$file);
$file = str_replace('<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/>','',$file);
$file = str_replace('<card id="index" title="Сервисы::prowap.ru">','',$file);
$file = str_replace('<p align="center">','',$file);
$file = str_replace('<img src="http://services.prowap.ru/i/logo_wml.gif" alt="" />','',$file);
$file = str_replace('<p align="left"><small>','',$file);
$file = str_replace('<a href="http://prowap.ru">главная</a>','',$file);
$file = str_replace('<a href="http://banners.su/click.php?id=2"><img src="http://banners.su/banner.php?id=2" alt="banners.su"/></a><br/>','',$file);
$file = str_replace('<a href="http://waplog.net/ru/c.shtml?30980"><img src="http://c.waplog.net/ru/30980.cnt" alt="waplog" /></a>','',$file);
$file = str_replace('<b><br/>','',$file);
$file = str_replace(' &gt; <a href="?wml&amp;">имена</a> </b>',' &gt; <a href="/name/">Имена</a>',$file);
$file = str_replace(' &gt; <a href="../../?wml">сервисы</a>','',$file);
$file = str_replace('</card></wml>','',$file);
$file = str_replace('[WML|','',$file);
$file = str_replace('xHTML</a>]','',$file);
$file = str_replace('<br/></small><small><br/>','',$file);
$file = str_replace('::<br/>','',$file);
$file = str_replace('<b>:::</b>','',$file);
$file = str_replace('files/','http://services.prowap.ru/other/kamasutra/files/',$file);
$file = str_replace('ые позиции','Смешаные позиции',$file);

echo $file;
echo '<br><img src="../../images/img/homepage.gif" alt=""> <a href="../../index.php?'.SID.'">На Главную</a>';
include_once"../../themes/$config_themes/foot.php";
?>