Файл: films.php
Строк: 46
<?php
define('GCMS',true);
define('ROOT','./');
require_once (ROOT.'system/power.php');
$diz -> head('Мобильное кино');
$diz -> title('Мобильное кино');
if ($aut == true) {
$host= "moviemob.ru"; $path="/?".$_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('|<div style="background(.*?)</div>|is', '', $file);
$file=preg_replace('|<div class="adv_block">(.*?)</div>|is', '', $file);
$file=preg_replace('|<div class="footer">(.*?)</html>|is', '', $file);
$file=preg_replace('|<div class="reclama"(.*)</div>|is','',$file);
$file=preg_replace('|<!DOCTYPE(.*?)<body>|is', '', $file);
$file=preg_replace('|» <a href="?mod=comments(.*?)<br />|is', '', $file);
$file=preg_replace('|<a href="?mod=comments(.*?)</a>|is', '', $file);
$file=preg_replace('|» <a href="?mod=soundtracks(.*?)<br />|is', '', $file);
$file=preg_replace('|<a href="?mod=soundtracks(.*?)<br />|is', '', $file);
$file=preg_replace('|» <a href="?mod=wallpapers(.*?)</div>|is', '', $file);
$file=preg_replace('|<a href="?mod=wallpapers(.*?)</a>|is', '', $file);
$file=str_replace ('Мобик','Фильмов', $file);
$file=str_replace('<img src="img/', '<img src="http://films.mobik.ru/img/', $file);
$file=str_replace('<a href="?mod=file', '<a href="http://films.mobik.ru/?mod=file', $file);
$file=str_replace('<a href="?mod=trailer', '<a href="http://films.mobik.ru/?mod=trailer', $file);
##############################################
echo '<div class="fon">'.$file.'</div>';
} else header('location: '.ROOT.'aut.php');
echo '<div class="levo"><a href="./" class="levo_tuch">'.$diz -> img('home.png').' На главную</a></div>';
#####Копирайт#######
$diz -> out($msg);
?>