Файл: filmwap/load.php
Строк: 17
<?php
include'head.php';
if($_GET['id']!='tags.html')echo'<div class="naaj">';echo'<div class="naaj">';
if($_GET['id']=='tags.html')echo'<div class="nav2">';echo'<div clas="a52">';
if($_GET[id]==NULL)header("Location: index.php");
$html = file_get_contents("http://7ba.ru/video/$_GET[id]");
$html = str_replace('<img src="/','<img src="http://7ba.ru/',$html);
$html = str_replace('<a href="/video/people/','<span class="',$html);
$html = str_replace('<a href="?mod','<a href="index.php?mod',$html);
$html=preg_replace('|<body>(.*?)</script>|is', '', $html);
$html=preg_replace('|<html(.*?)<div itemscope itemtype="http://schema.org/Movie"><div class="text2">|is', '<div class="main">', $html);
$html=preg_replace('|Для(.*?)</body>|is', '', $html);
$html=preg_replace('|<link rel(.*?)/>|is', '', $html);
$html=preg_replace('|<br/></div></div><div class="text2">|is', '<br/></div><div class="main">', $html);
$html=preg_replace('|</div><div class="text2">|is', '</div><div class="main">', $html);
echo $html;
if($_GET['id']=='tags.html')echo'</div>';echo'</div>';echo'</div>';
echo"</a><div class='foot'><img src='/style/icons/str2.gif'> <a href='/filmwap'>Мобильные фильмы</a> | <a href='/filmwap/load.php?id=tags.html'>Жанры</a></div>";
include'foot.php';
?>