ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/netphim/code/phim/ |
<?php $slug = $CORE->input['slug']??''; $r_detail = $DB->fetch_row($DB->query("SELECT * FROM tb_phim WHERE slug='$slug'")); if(!$r_detail){ header('Location: '.$INFO['home_url']); } $phim_id = $r_detail['phim_id']; $txt_type = 'phim-le'; $txt_type_name = 'Phim lẻ'; if($r_detail['type']=='series' or $r_detail['type']=='tvshows'){ $txt_type = 'phim-bo'; $txt_type_name = 'Phim bá»™'; } if($r_detail['type']=='hoathinh'){ $txt_type = 'phim-hoat-hinh'; $txt_type_name = 'Phim hoạt hình'; } if($r_detail['chieurap']==1){ $txt_type = 'phim-chieu-rap'; $txt_type_name = 'Phim chiếu rạp'; } $txt_cate = str_replace('@',"','",$r_detail['category']); $txt_cate = "'".$func->remove_lastchar($txt_cate,3)."'"; $q_cate = $DB->query("SELECT name,slug FROM tb_genres WHERE slug IN (".$txt_cate.") ORDER BY name "); while($r_cate = $DB->fetch_row($q_cate)){ $arr_cate[] = '<a href="/the-loai/'.$r_cate['slug'].'/">'.$r_cate['name'].'</a>'; } $txt_cate = implode(' - ',$arr_cate); $smarty->assign('txt_cate',$txt_cate); $txt_country = str_replace('@',"','",$r_detail['country']); $txt_country = "'".$func->remove_lastchar($txt_country,3)."'"; $q_country = $DB->query("SELECT name,slug FROM tb_country WHERE slug IN (".$txt_country.") ORDER BY name "); while($r_country = $DB->fetch_row($q_country)){ $arr_country[] = '<a href="/quoc-gia/'.$r_country['slug'].'/">'.$r_country['name'].'</a>'; } $txt_country = implode(' - ',$arr_country); $smarty->assign('txt_country',$txt_country); $txt_daodien = 'Äang cáºp nháºt'; if(str_replace('@','',$r_detail['director'])!=''){ $arr_daodien = explode('@',$r_detail['director']); foreach($arr_daodien as $val){ if(!empty($val)){ $arr_daodien_show[] = '<a href="/dao-dien/'.$val.'/">'.$val.'</a>'; } } $txt_daodien = implode(' - ',$arr_daodien_show); } $smarty->assign('txt_daodien',$txt_daodien); $txt_dienvien = 'Äang cáºp nháºt'; if(str_replace('@','',$r_detail['actor'])!=''){ $arr_dienvien = explode('@',$r_detail['actor']); foreach($arr_dienvien as $val){ if(!empty($val)){ $arr_dienvien_show[] = '<a href="/dien-vien/'.$val.'/">'.$val.'</a>'; } } $txt_dienvien = implode(' - ',$arr_dienvien_show); } $smarty->assign('txt_dienvien',$txt_dienvien); $r_epi = $DB->fetch_row($DB->query("SELECT server_name,server_data FROM tb_epi WHERE phim_id='$phim_id' LIMIT 1")); $arr_data = json_decode($r_epi['server_data'],true); $txt_name_epi = $func->format_string($arr_data[0]['filename']); $smarty->assign('txt_name_epi',$txt_name_epi); $count_data = count($arr_data); $smarty->assign('count_epi',$count_data); $txt_tap_moi = ''; if($count_data>1){ $arr_data = array_reverse($arr_data); foreach($arr_data as $key=>$val){ if($key<5) { $f_name_epi = $func->format_string($val['filename']); $txt_tap_moi .= '<li class="mark-'.($key+1).'"><div class="episodiotitle"><a href="/' . $r_detail['slug'] . '/' . ($count_data-($key+1)) . '-' . $f_name_epi . '/">Táºp ' . $val['slug'] . '</a></div></li>'; }else{ break; } } } $smarty->assign('txt_tap_moi',$txt_tap_moi); //related $arr_genres = explode('@',$r_detail['category']); $related_phim = related_phim($arr_genres,$phim_id,15); $smarty->assign('related_phim',$related_phim); //insert history $row_follow=array(); if($ob_user->user_id>0) { $row_follow = $DB->fetch_row($DB->query("SELECT follow_id FROM tb_follow WHERE phim_id='" . $phim_id . "' AND user_id='" . intval($ob_user->user_id) . "' LIMIT 1")); } $smarty->assign('follow', $row_follow); $smarty->assign('txt_type',$txt_type); $smarty->assign('txt_type_name',$txt_type_name); $smarty->assign('detail',$r_detail); $follow_phim = follow_phim(5); $smarty->assign('follow_phim',$follow_phim); $history_phim = history_phim(5); $smarty->assign('history_phim',$history_phim); $top_member = top_member(5); $smarty->assign('top_member',$top_member); $lasted_comment = lasted_comment(5); $smarty->assign('lasted_comment',$lasted_comment); $namphathanh = namphathanh(6); $smarty->assign('namphathanh',$namphathanh); $phimquantam = phimquantam(20); $smarty->assign('phimquantam',$phimquantam); $title_page = $r_detail['name'].' - '.$r_detail['origin_name']; $smarty->assign('title_page',str_replace('"',"'",$title_page)); $smarty->assign('des_page',str_replace('"',"'",strip_tags($r_detail['content']))); $smarty->assign('image_page',$r_detail['thumb_url']); ?>