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 .= ''; 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 .= '
Страницы: 1 ... 1 '.$wpage.' '.$page.' '.$wpage.' '.$cnt_pages.' ... '.$cnt_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; } ?> ᐈ , смотреть онлайн или скачать торрент<?if ($page > 1) echo ', страница '.$page;?>
{$first_name} {$last_name}"; } else { $html_1 = "{$first_name} {$last_name}"; } $html_2 = "

Выйти

"; ?>
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'; ?>

Все с

Отобраны с участием с сортировкой по году выпуска, весь список представлен ниже. Любой Вы можете скачать через торрент бесплатно или смотреть онлайн в хорошем качестве.
не найдены
'; } else { $img = 'NO POSTER'; } ?>


$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 .= '...'; ?>



с скачать через торрент в хорошем качестве