define ('torrent', true);
require_once('connect_7.php');
header ("Content-Security-Policy: default-src 'self' * https://*.cdn.yandex.net; connect-src 'self' * *.info *.ru *.com *.net *.digitaltarget.ru *.refocus.ru ".$_SERVER['HTTP_HOST']." pwrlkyotm.com dmpprof.com *.analitycs.net *.alli-ti-cod.com all-ti-cod.com hbhood.com hdbcode.com ferdarius.com *.vk.com mail.ru *.yandex.ru *.doubleclick.net *.googlesyndication.com *.cdn.yandex.net *.yandex.ua https://mc.yandex.ru/; style-src 'self' 'unsafe-inline' *; frame-src 'self' data: * *.com *.net *.ru start.u-stream.in uuidksinc.net *.youtube.com *.webmoney.ru *.googleapis.com *.google.com *.doubleclick.net *.kinotreiler.com *.videocdn.pw blob: vk.com login.vk.com; img-src * data: blob: ; object-src 'self' data: ; media-src * data:; font-src 'self' data: * *.com ; script-src 'self' 'unsafe-inline' 'unsafe-eval' * *.info *.ru *.com *.net *.digitaltarget.ru *.refocus.ru ".$_SERVER['HTTP_HOST']." pwrlkyotm.com dmpprof.com trafmag.com *.redtram.com start.u-stream.in ustore.bz alli-ti-cod.com all-ti-cod.com hbhood.com hdbcode.com ferdarius.com luxadv.com *.luxadv.com adlmerge.com https://www.google-analytics.com *.googlesyndication.com https://mc.yandex.ru https://ajax.googleapis.com *.google.com.ua *.google.com *.google.ru *.google.ae *.googletagservices.com *.googleapis.com *.youtube.com an.yandex.ru *.kinotreiler.com www.gstatic.com https://yandex.st https://clck.yandex.ru yohoho.cc www.googletagmanager.com vk.com yastatic.net");
require_once('./prov_elk.php');
$protokol = 'http://';
if (isset($_SERVER['HTTPS'])) $protokol = 'https://';
function getTelegramUserData() {
if (isset($_COOKIE['tg_user'])) {
$auth_data_json = urldecode($_COOKIE['tg_user']);
$auth_data = json_decode($auth_data_json, true);
return $auth_data;
}
return false;
}
$sess = 0;
$admin = 0;
$dostup = 0;
$tg_user = getTelegramUserData();
if ($tg_user !== false)
{
$user_id = htmlspecialchars($tg_user['id']);
$user_id = $mysqli->real_escape_string($user_id);
$query = "SELECT admin, dostup FROM users_TG WHERE user_id = '".$user_id."' LIMIT 1";
$res = $mysqli->query($query) or die('ERROR select user');
if ($res->num_rows == 0)
{
header("Location: ".$protokol.$_SERVER['HTTP_HOST']."/logout.php");
die();
}
$prd_user = $res->fetch_array(MYSQLI_BOTH);
if ($prd_user['admin'] == 1)
{
$admin = 1;
}
if ($prd_user['dostup'] == 1)
{
$dostup = 1;
}
$first_name = htmlspecialchars($tg_user['first_name']);
$last_name = htmlspecialchars($tg_user['last_name']);
if (isset($tg_user['username'])) {
$username = htmlspecialchars($tg_user['username']);
}
if (isset($tg_user['photo_url'])) {
$photo_url = htmlspecialchars($tg_user['photo_url']);
// $html .= " ";
}
$sess = 1;
}
if ($admin == 1)
{
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
}
if (!isset($_GET['q']) or ($_GET['q'] == ''))
{
require_once("./404.php");
exit();
}
$zap_h1 = '';
if ($_GET['c'] == 'film')
{
$text = 'Фильмы';
$text_mini = 'фильмы';
$text_mini_one = 'фильм';
$text_link = 'film';
$table = 'film_2';
$table_cat = 'film_category';
$table_actor = 'film';
$zap_h1 = ', h1';
$catsfile1 = 'categories_and_tags/film_category_1.txt';
$catsfile2 = 'categories_and_tags/film_category_2.txt';
$yatext = '-film-el-';
} elseif ($_GET['c'] == 'multfilm') {
$text = 'Мультфильмы';
$text_mini = 'мультфильмы';
$text_mini_one = 'мультфильм';
$text_link = 'multfilm';
$table = 'multfilm_2';
$table_cat = 'multfilm_category';
$table_actor = 'multfilm';
$catsfile1 = 'categories_and_tags/multfilm_category_1.txt';
$catsfile2 = 'categories_and_tags/multfilm_category_2.txt';
$yatext = '-multfilm-el-';
} elseif ($_GET['c'] == 'serialy') {
$text = 'Сериалы';
$text_mini = 'сериалы';
$text_mini_one = 'сериал';
$text_link = 'serialy';
$table = 'serial_2';
$table_cat = 'serial_category';
$table_actor = 'serial';
$catsfile1 = 'categories_and_tags/serial_category_1.txt';
$catsfile2 = 'categories_and_tags/serial_category_2.txt';
$yatext = '-serial-el-';
} else {
require_once("./404.php");
exit();
}
DEFINE('ITEMS_PER_PAGE', 15);
if (isset($_GET['page']))
{
$page = (int)$_GET['page'];
if ($page <= 1)
{
header($_SERVER['SERVER_PROTOCOL']." 301 Moved Permanently");
$location = 'Location:'.$protokol.$_SERVER['HTTP_HOST'].'/'.$text_link.'/'.$mysqli->real_escape_string($_GET['q']).'/';
header($location);
die();
}
} else {
$page = 1;
}
$actor = preg_replace("/[^A-Za-zА-Яа-я0-9- .ё()áéö']/ui", '', $_GET['q']);
//$actor = $mysqli->real_escape_string($_GET['q']);
$actor_link = str_ireplace(' ', '+', $actor);
$actor_link = str_ireplace('+++++', '+', $actor_link);
$actor_link = str_ireplace('++++', '+', $actor_link);
$actor_link = str_ireplace('+++', '+', $actor_link);
$actor_link = str_ireplace('++', '+', $actor_link);
$actor2 = explode(' ', $actor);
$actor_q = '';
foreach($actor2 as $values)
{
$values = trim($values);
$actor_q .= '+'.$values.' ';
}
$actor_q = $mysqli->real_escape_string(htmlentities(substr($actor_q, 0, -1)));
$query_total = 'SELECT COUNT(*) FROM '.$table.' WHERE MATCH (actors) AGAINST (\'"'.$actor_q.'" @0\' IN BOOLEAN MODE)';
$res_total = $mysqli->query($query_total) or die('error #sel_count_total_film '.$query_total);
$total = $res_total->fetch_row()[0];
$cnt_pages = ceil($total/ITEMS_PER_PAGE);
if ($page > $cnt_pages and $cnt_pages > 0)
{
header($_SERVER['SERVER_PROTOCOL']." 301 Moved Permanently");
$location = 'Location:'.$protokol.$_SERVER['HTTP_HOST'].'/'.$text_link.'/'.$mysqli->real_escape_string($_GET['q']).'/'.$cnt_pages.'.page';
header($location);
die();
}
$start = ($page - 1) * ITEMS_PER_PAGE;
$lim = $start.", ".ITEMS_PER_PAGE;
$query = 'SELECT alt_name, name, category, year, description, YAblock FROM '.$table.' WHERE MATCH (actors) AGAINST (\'"'.$actor_q.'" @0\' IN BOOLEAN MODE) ORDER BY year DESC LIMIT '.$lim;
$res2 = $mysqli->query($query) or die('error 1');
$actor_a = $mysqli->real_escape_string($actor_link);
$query = 'SELECT name, film, multfilm, serial FROM actors WHERE name = "'.$actor_a.'" LIMIT 1';
$res_a = $mysqli->query($query) or die('error 2');
$noindex = '';
$nichego = 1;
if ($res2->num_rows == 0)
{
$noindex = ' ';
$nichego = 0;
}
if ($res_a->num_rows == 0)
{
$noindex = ' ';
} else {
$prd_a = $res_a->fetch_array(MYSQLI_BOTH);
if ($prd_a[$table_actor] == 1 and $res2->num_rows == 0)
{
// mysql_query('UPDATE actors SET '.$table_actor.' = 0 WHERE name = "'.$actor_a.'" LIMIT 1');
}
if ($prd_a[$table_actor] == 0 and $res2->num_rows != 0)
{
// mysql_query('UPDATE actors SET '.$table_actor.' = 1 WHERE name = "'.$actor_a.'" LIMIT 1');
}
}
$file = file_get_contents($catsfile1);
$category_name = unserialize($file);
$file = file_get_contents($catsfile2);
$category_alt_name = unserialize($file);
/*
$query = "SELECT id, name, alt_name".$zap_h1." FROM ".$table_cat;
$res = mysql_query($query) or die('Не удается получить список категорий');
if (mysql_num_rows($res) != 0)
{
while ($prd = mysql_fetch_array($res))
{
$category_name[$prd['id']] = $prd['name'];
$category_alt_name[$prd['id']] = $prd['alt_name'];
}
}
*/
$text_pages = '';
if ($cnt_pages > 1)
{
$text_pages = '
';
$wpage = 1;
if ($page > 5)
{
$text_pages .= ' ';
$wpage = $page - 3;
}
while ($wpage < $page)
{
if ($wpage == 1)
{
$text_pages .= ' ';
} else {
$text_pages .= ' ';
}
$wpage++;
}
$text_pages .= ''.$page.' ';
if ($page < $cnt_pages)
{
$wpage = $page + 1;
$total_wpages = $page + 3;
while ($wpage <= $total_wpages and $wpage <= $cnt_pages)
{
$text_pages .= ' ';
$wpage++;
}
if ($total_wpages < $cnt_pages)
{
if ($total_wpages == $cnt_pages - 1)
{
$text_pages .= ' ';
} else {
$text_pages .= ' ';
}
}
}
$text_pages .= '
';
}
$YAbot = 0;
if (stristr($_SERVER['HTTP_USER_AGENT'], '//yandex.com/bots') or stristr($_SERVER['HTTP_USER_AGENT'], '//www.google.com/bot.html') or stristr($_SERVER['HTTP_USER_AGENT'], '//www.bing.com/bingbot.htm') or stristr($_SERVER['HTTP_USER_AGENT'], '//help.yahoo.com/help/us/ysearch/slurp') or stristr($_SERVER['HTTP_USER_AGENT'], '//www.baidu.com/search/spider.html'))
{
$YAbot = 1;
}
$reklama = 1;
if ($admin == 1 or $YAbot == 1 or $dostup == 1)
{
$reklama = 0;
}
?>
ᐈ , смотреть онлайн или скачать торрент 1) echo ', страница '.$page;?>
if ($reklama == 1)
{
?>
}
?>
if ($reklama == 1)
{
?>
}
if ($admin == 1)
{
echo 'SELECT alt_name, name, category, year, description, YAblock FROM '.$table.' WHERE MATCH (actors) AGAINST (\'"'.$actor_q.'" @0\' IN BOOLEAN MODE) ORDER BY year DESC LIMIT '.$lim;
}
?>
if ($sess == 1) {
if (isset($tg_user['username'])) {
$html_1 = "{$first_name} {$last_name} ";
} else {
$html_1 = "{$first_name} {$last_name}";
}
$html_2 = "Выйти
";
?>
} else {
?>
}
?>
if ($prd_a['film'] == 1)
{
?>
}
if ($prd_a['multfilm'] == 1)
{
?>
}
if ($prd_a['serial'] == 1)
{
?>
}
?>
Все с
Отобраны с участием с сортировкой по году выпуска, весь список представлен ниже. Любой Вы можете скачать через торрент бесплатно или смотреть онлайн в хорошем качестве.
if ($nichego == 0)
{
if ($reklama == 1)
{
?>
}
?>
не найдены
} else {
$colll = 0;
while ($prd = $res2->fetch_array(MYSQLI_BOTH))
{
$prd['category'] = substr($prd['category'], 1, -1);
$film_cats = explode('|', $prd['category']);
$href_film = $protokol.$_SERVER['HTTP_HOST'].'/'.$text_link.'/'.$category_alt_name[$film_cats[0]].'/'.$prd['alt_name'];
if ($prd['YAblock'] != 0)
{
$href_film .= $yatext.$prd['YAblock'];
}
$href_film .= '.htm';
?>
if (file_exists('./images/'.$text_link.'/'.$prd['alt_name'].'.jpg'))
{
$img = '
';
} else {
$img = '
';
}
?>
$num_cat = 0;
foreach ($film_cats as $key => $values)
{
if ($num_cat != 0 and $num_cat != count($film_cats)) echo ', ';
echo '
'.$category_name[$values].' ';
$num_cat++;
}
$description = htmlspecialchars_decode($prd['description']);
if (strpos($description, '<'))
{
$description = substr($description, 0, strpos($description, '<'));
}
if (iconv_strlen($prd['description'], 'UTF-8') > 150)
{
$description = iconv_substr ($description, 0, 150, 'UTF-8');
$description = iconv_substr ($description, 0, iconv_strrpos($description, ' ', 'UTF-8'), 'UTF-8');
}
$description = trim($description);
$description = rtrim($description, '!,.-');
$description .= '...';
?>
$colll++;
if ($reklama == 1)
{
if ($colll == 5)
{
?>
} elseif ($colll == 10) {
?>
} elseif ($colll == 15) {
?>
}
}
}
if ($reklama == 1 and $colll < 5)
{
?>
}
}
?>
с скачать через торрент в хорошем качестве
if ($reklama == 1)
{
?>
}
?>
if ($reklama == 1)
{
?>
}
?>