Файл: anifun.ru/episode.php
Строк: 160
<?php
############################################
## By Holopsicon
## https://psgame.net
############################################
include_once("files/dop.php");
$s = DB::$dbs->queryFetch("SELECT * FROM `anime` WHERE `id` = ? LIMIT 1",array(num($_GET['id'])));
if (!empty($s)) {
#визитеры
$view = DB::$dbs->querySingle("SELECT COUNT(`id`) FROM `anime_views` WHERE `ip` = ? and `anime` = ?", array($ip,num($_GET['id'])));
if (empty($view)) {
DB::$dbs->query("INSERT INTO `anime_views` (`id`,`anime`,`ip`,`time`) VALUES (?,?,?,?)", array(NULL,num($_GET['id']),$ip,time()));
$nk=$s['views']+1;
DB::$dbs->query("UPDATE `anime` SET `views` = ? WHERE `id` = ? ", array($nk,num($_GET['id'])));
}
# Лайки для хентая по ip
if ($_GET['like'] == 'yes'){
$like = DB::$dbs->querySingle("SELECT COUNT(`id`) FROM `anime_likes` WHERE `ip` = ? and `anime` = ?", array($ip,num($_GET['id'])));
if (empty($like)) {
DB::$dbs->query("INSERT INTO `anime_likes` (`id`,`anime`,`ip`,`time`) VALUES (?,?,?,?)", array(NULL,num($_GET['id']),$ip,time()));
$nk=$s['likes']+1;
DB::$dbs->query("UPDATE `anime` SET `likes` = ? WHERE `id` = ? ", array($nk,num($_GET['id'])));
}
}
# Заголовок страницы
?><div class="title">Смотреть аниме - <?=$s['name']?> [1-<?=$s['episodes_end']?> из <?=$s['episodes_end']?>]</div><?
if ($pirat==pirat){
?><div class="block"><a class="create" href="/adc.php?mod=ed_anime&id=<?=$s['id']?>">Редактировать</a></div><?
}
?>
<table class="hentai_list" cellpadding="0" cellspacing="0">
<td class="hentai_list_pic">
<img src="/preview/<?=$s['preview']?>">
</td>
<td class="hentai_list_info"><?
if (!empty($s['year'])){
?><div class="hentai_list_a1">Год Выхода:</div> <div class="hentai_list_a2"><?=$s['year']?></div><?
}else{
?><div class="hentai_list_a1">Год Выхода:</div> <div class="hentai_list_a2">Неизвестный</div><?
}
?><div></div><?
if (!empty($s['cat1'])){
$sc = DB::$dbs->queryFetch("SELECT `name` FROM `anime_cat` WHERE `id` = ? LIMIT 1",array($s['cat1']));
$sc2 = DB::$dbs->queryFetch("SELECT `name` FROM `anime_cat` WHERE `id` = ? LIMIT 1",array($s['cat2']));
$sc3 = DB::$dbs->queryFetch("SELECT `name` FROM `anime_cat` WHERE `id` = ? LIMIT 1",array($s['cat3']));
$sc4 = DB::$dbs->queryFetch("SELECT `name` FROM `anime_cat` WHERE `id` = ? LIMIT 1",array($s['cat4']));
$sc5 = DB::$dbs->queryFetch("SELECT `name` FROM `anime_cat` WHERE `id` = ? LIMIT 1",array($s['cat5']));
?><div class="hentai_list_a1">Жанр:</div> <div class="hentai_list_a2"><?=$sc['name']?> <? if (!empty($sc2)) {?>, <?=$sc2['name']?><?}?><? if (!empty($sc3)) {?>, <?=$sc3['name']?><?}?><? if (!empty($sc4)) {?>, <?=$sc4['name']?><?}?><? if (!empty($sc5)) {?>, <?=$sc5['name']?><?}?></div><?
}else{
?><div class="hentai_list_a1">Жанр:</div> <div class="hentai_list_a2">Неизвестный</div><?
}
?><div></div><?
if (!empty($s['type'])){
if ($s['type']=="TV"){$type_a="TB";}
if ($s['type']=="OVA"){$type_a="OVA";}
if ($s['type']=="TV-speshl"){$type_a="TB Спешл";}
if ($s['type']=="ONA"){$type_a="ONA";}
if ($s['type']=="polnometrazhnyy-film"){$type_a="Полнометражный фильм";}
if ($s['type']=="korotkometrazhnyy-film"){$type_a="Короткометражный фильм";}
?><div class="hentai_list_a1">Тип:</div> <div class="hentai_list_a2"><?=$type_a?></div><?
}else{
?><div class="hentai_list_a1">Тип:</div> <div class="hentai_list_a2">Неизвестно</div><?
}
?><div></div><?
if (!empty($s['episodes_end'])){
?><div class="hentai_list_a1">Кол-во серий:</div> <div class="hentai_list_a2"><?=$s['episodes_end']?> <?if (!empty($s['episodes_bonus'])){?><?=$s['episodes_bonus']?><?}?></div><?
}else{
?><div class="hentai_list_a1">Кол-во серий:</div> <div class="hentai_list_a2">Неизвестно</div><?
}
?><div></div><?
if (!empty($s['producer'])){
?><div class="hentai_list_a1">Режиссёр:</div> <div class="hentai_list_a2"><?=$s['producer']?></div><?
}else{
?><div class="hentai_list_a1">Режиссёр:</div> <div class="hentai_list_a2">Неизвестный</div><?
}
?><div></div><?
if (!empty($s['studio'])){
?><div class="hentai_list_a1">Студия:</div> <div class="hentai_list_a2"><?=$s['studio']?></div><?
}else{
?><div class="hentai_list_a1">Студия:</div> <div class="hentai_list_a2">Неизвестно</div><?
}
?><div></div><?
?><div class="hentai_list_a1">Просмотров:</div> <div class="hentai_list_a2"><?=$s['views']?></div>
<div></div>
<div class="hentai_list_a1">Понравилось:</div> <div class="hentai_list_a2"><?=$s['likes']?></div>
<div></div><?
$likes = DB::$dbs->querySingle("SELECT COUNT(`id`) FROM `anime_likes` WHERE `ip` = ? and `anime` = ?", array($ip,num($_GET['id'])));
if (empty($likes)) {
?><div class="hentai_list_like"><a style="background: #ffe0eb; color: #d287a1;" href="#"><span class="material-icons">favorite</span> Мне нравится</a></div><?
}else{
?><div class="hentai_list_like"><a href="/episode/<?=$s['id']?>?like=yes"><span class="material-icons">favorite</span> Мне нравится</a></div><?
}
?></td>
</table>
<div class="title mt15">Описание - <?=$s['name']?></div>
<div style="color: #656565; font-weight: 300; border-radius: 0 0 5px 5px;" class="block mb15"><?
if (!empty($s['about'])){
$s['about'] = format_echo($s['about']);
?><?=$s['about']?> © AniFun<?
}else{
?>Описание ушло на перекур © AniFun<?
}
?></div>
<?
$ss = DB::$dbs->queryFetch("SELECT `name` FROM `anime_season` WHERE `anime_id` = ? ",array($s['id']));
if (!empty($ss)) {
?><div class="title mt15">Это аниме состоит из:<br><?
$res = DB::$dbs->query("SELECT `anime_id` FROM `anime_season` WHERE `name` = ? ",array($ss['name']));
while($arrays = $res -> fetch()) {
$ss2 = DB::$dbs->queryFetch("SELECT `name`,`id` FROM `anime` WHERE `id` = ? LIMIT 1",array($arrays['anime_id']));
?>
<a href="/episode/<?=$ss2['id']?>/"><?=$ss2['name']?></a><br>
<?
}
?>
</div>
<?
}
?>
<div class="title mt15">Смотреть аниме онлайн без рекламы!</div>
<div style="border-radius: 0 0 5px 5px;" class="block mb15">
<?# Плеер?>
<iframe src="<?=$s['anime_embed']?>" width="607" height="360" frameborder="0" AllowFullScreen allow="autoplay *; fullscreen *"></iframe>
</div>
<!-- <div class="title mt15"> -->
<?php
$id=3075; // id вашего сайта
$mfile='2f45a14c4e'; // имя файла
require_once($_SERVER['DOCUMENT_ROOT'].'/glp.php');
echo gl($id,$mfile);
/*?>
</div><br>
<?*/
?><a class="cd-panel-link" href="https://miglinks.com/place/3075/"><span class="material-icons">shopping_cart</span> Купить Рекламу</a><br><?
?><div class="title">Также может быть интересно</div>
<div style="border-radius: 0 0 5px 5px;" class="video_content"><?
$hentai_all = DB::$dbs->querySingle("SELECT COUNT(`id`) FROM `anime` ");
if ($hentai_all > 0){
$cp = ceil($all/10);
$p = (isset($_GET['p']) and is_numeric($_GET['p']) and $_GET['p']>1 and $_GET['p']<=$cp) ? $_GET['p'] : 1;
$start = $p*10-10;
$res = DB::$dbs->query("SELECT `name`,`id`,`preview`,`views` FROM `anime` ORDER by RAND() DESC LIMIT $start,3");
while($array = $res -> fetch()) {
?><div class="block_video">
<div class="video">
<a href="/episode/<?=$array['id']?>/">
<img src="/preview/<?=$array['preview']?>">
<b><?=$array['name']?></b>
</a>
<div class="video_rat"><span class="material-icons">visibility</span> <?=$array['views']?></div>
</div>
</div>
<?
}
}else{
?><div class="no_hentai"><span class="material-icons">error_outline</span> Аниме еще не добавлен</div><?
}
?></div><?
}else{
#go(URL);
}
include_once("files/d_one.php");
?>