Файл: social12/films/actor.php
Строк: 25
<?php
require '../sid.php';
require '../config.php';
$link = connect_db();
if (!empty($_SESSION['us'])) {
list($user, $id, $ps) = check_login($link);
whorm(0, 'films');
}
include '../head.php';
echo $div_title . 'Самая большая колекция в WAPе
<br/>
МОБИЛЬНЫХ ФИЛЬМОВ' . $div_end;
$x = file_get_contents('http://mobkino.org/actor.php?' . $_SERVER['QUERY_STRING']);
if (empty($x)) {
err('Извините, раздел фильмов пока недоступен!');
} else {
$x = preg_replace('#<?xml(.*)(</div>)#isU', '', $x);
$x = preg_replace('#<img class="poster" src="(.*)" />#isU', '', $x);
$x = preg_replace('#sid=(.*)(")#isU', '"', $x);
$x = preg_replace('#<!--(.*)(-->)#isU', '', $x);
$x = str_replace('<?', '', $x);
$x = str_replace('<span class="white">Mob</span><span class="red">Kino</span>', $site, $x);
$x = str_replace('class="red" ', '', $x);
$x = preg_replace('#<table width="(.*)">#isU', '', $x);
$x = str_replace('<td>', '', $x);
$x = str_replace('</td>', '', $x);
$x = str_replace('<tr>', '', $x);
$x = str_replace('</tr>', '', $x);
$x = str_replace('</table>', '', $x);
$x = str_replace('<div class="hr"></div>', $block, $x);
$x = str_replace('<!--(c)oded by NoX-->', '', $x);
$x = str_replace('Рекомендуем', '', $x);
$x = preg_replace('#<a href="/(.*)</a>#isU', '<a href="1</a>', $x);
$x = preg_replace('#<b><a href="http://wap.sasisa.ru(.*)</b><br />#isU', '', $x);
$x = preg_replace('#<a class="white"(.*)</a>#isU', '', $x);
$x = str_replace('© MOB<span class="red">KINO</span>.ORG 2011', '', $x);
$x = preg_replace('#<img src="http://(.*)<br />#isU', '', $x);
$x = str_replace('<div class="sub">', '<div class="menu">', $x);
$x = str_replace('<div class="content">', '<div class="tworazdel">', $x);
echo $div_left . $x . $div_end;
}
unset($x);
include '../foot.php';
?>