ÿØÿà 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 $where = " WHERE slug!='' "; $f = $CORE->input['f']??array(); $smarty->assign('f',$f); $param_search = ''; if(!empty($f)) { foreach ($f as $key => $val) { if (isset($val) and !empty($val)) { if ($key == 'type') { if ($val == 'phim-le') { $where .= " AND type='single' "; $arr_title_page[] = 'Phim lẻ'; } if ($val == 'phim-bo') { $where .= " AND type IN ('series','tvshows') "; $arr_title_page[] = 'Phim bá»™'; } if ($val == 'phim-chieu-rap') { $where .= " AND chieurap=1 "; $arr_title_page[] = 'Phim chiếu rạp'; } if ($val == 'phim-hoat-hinh') { $where .= " AND type='hoathinh' "; $arr_title_page[] = 'Phim hoạt hình'; } } if ($key == 'genres') { $val = trim($val); $where .= " AND category LIKE '%" . $val . "@%' "; $row_menu = $DB->fetch_row($DB->query("SELECT name FROM tb_genres WHERE slug='$val' ")); $genres_name = $row_menu['name']; $arr_title_page[] = 'Thể loại ' . $genres_name; } if ($key == 'country') { $val = trim($val); $where .= " AND country LIKE '%" . $val . "@%' "; $row_menu = $DB->fetch_row($DB->query("SELECT name FROM tb_country WHERE slug='$val' ")); $country_name = $row_menu['name']; $arr_title_page[] = 'Quốc gia ' . $country_name; } if ($key == 'year') { if ($val >= 2007) { $where .= " AND year = '" . $val . "' "; } else { $where .= " AND year <= '" . $val . "' "; } $arr_title_page[] = 'Năm phát hà nh ' . $val; } if ($key == 'director') { $val = trim($val); $where .= " AND director LIKE '%" . $val . "@%' "; $arr_title_page[] = 'Äạo diá»…n ' . $val; } if ($key == 'actor') { $val = trim($val); $where .= " AND actor LIKE '%" . $val . "@%' "; $arr_title_page[] = 'Diá»…n viên ' . $val; } if ($key == 'lang') { $val = trim($val); if ($val == 'vsub') { $where .= " AND lang LIKE '%Vietsub%' "; $arr_title_page[] = 'Vietsub'; } if ($val == 'esub') { $where .= " AND lang LIKE '%Engsub%' "; $arr_title_page[] = 'Engsub'; } if ($val == 'tm') { $where .= " AND (lang LIKE '%Thuyết Minh%' OR lang LIKE '%Thuyết minh%') "; $arr_title_page[] = 'Thuyết minh'; } if ($val == 'tt') { $where .= " AND (lang LIKE '%Lồng Tiếng%' OR lang LIKE '%Lồng tiếng%') "; $arr_title_page[] = 'Lồng tiếng'; } } if ($key == 'keyword') { $val = trim($val); $where .= " AND (name LIKE '%" . $val . "%' OR origin_name LIKE '%" . $val . "%' OR actor LIKE '%" . $val . "%' OR director LIKE '%" . $val . "%') "; $arr_title_page[] = 'Phim vá»›i từ khóa "' . $val . '"'; } /*if ($key == 'sortby') { if ($val == 'lastest-chap') { $order_by = " time_update DESC "; $txt_card_title .= ' lastest chapter update'; } if ($val == 'hot') { $order_by = " truyen_hot DESC,time_post DESC "; $txt_card_title .= ' hot manga update'; } if ($val == 'lastest-manga') { $order_by = " time_post DESC "; $txt_card_title .= ' lastest manga update'; } if ($val == 'top-all') { $order_by = " truyen_hit DESC,truyen_hitthang DESC,truyen_hittuan DESC,time_post DESC "; $txt_card_title .= 'manga with the most views updated'; } if ($val == 'top-manga') { $order_by = " truyen_hit DESC,time_post DESC "; $txt_card_title .= 'manga with the most views'; } if ($val == 'top-month') { $order_by = " truyen_hitthang DESC,time_post DESC "; $txt_card_title .= 'manga with the most views in month'; } if ($val == 'top-week') { $order_by = " truyen_hittuan DESC,time_post DESC "; $txt_card_title .= 'manga with the most views in week'; } if ($val == 'top-day') { $order_by = " truyen_hitngay DESC,time_post DESC "; $txt_card_title .= 'manga with the most views in day'; } if ($val == 'follow') { $order_by = " truyen_theodoi DESC,time_post DESC "; $txt_card_title .= 'manga with the most follow'; } if ($val == 'comment') { $order_by = " truyen_hitcomment DESC,time_post DESC "; $txt_card_title .= 'manga with the most comment'; } if ($val == 'num-chap') { $order_by = " truyen_sochuong DESC,time_post DESC "; $txt_card_title .= 'manga with the most num. chapter'; } }*/ $param_search .= 'f[' . $key . ']=' . $val . '&'; } } } $pageNum = isset($_GET['pageNum']) ? intval($_GET['pageNum']) : 1; $pageSize = 45; $from = (($pageNum * $pageSize) - $pageSize); $key_total = md5("SELECT count(*) as total FROM tb_phim ".$where); if($memcache->get($key_total)){ $total = $memcache->get($key_total); }else { $t = $DB->fetch_row($DB->query("SELECT count(*) as total FROM tb_phim " . $where)); $total = $t['total']; $memcache->set($key_total,$total,MEMCACHE_COMPRESSED,1200); } $totalPage = ceil($total / $pageSize); $key_phim = md5("SELECT phim_id,name,slug,origin_name,thumb_url,quality,lang,type,year,episode_current FROM tb_phim ".$where." ORDER BY created DESC LIMIT $from,$pageSize"); if($memcache->get($key_phim)){ $arr_phim = $memcache->get($key_phim); }else { $q_phim = $DB->query("SELECT phim_id,name,slug,origin_name,thumb_url,quality,lang,type,year,episode_current FROM tb_phim " . $where . " ORDER BY created DESC LIMIT $from,$pageSize"); $arr_phim = array(); while ($r_phim = $DB->fetch_row($q_phim)) { if ($r_phim['type'] == 'single') { $r_phim['episode_current'] = $r_phim['quality']; } $arr_phim[] = $r_phim; } $memcache->set($key_phim,$arr_phim,MEMCACHE_COMPRESSED,1200); } $smarty->assign('arr_phim',$arr_phim); $nav = $print->Pagination($totalPage,$pageNum,'pages','?act=phim&code=list&'.$func->remove_lastchar($param_search,1)); $smarty->assign('nav',$nav); $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); if(isset($arr_title_page)) { $title_page = implode(' - ', $arr_title_page) . ' má»›i'; }else{ $title_page = 'Danh sách phim má»›i cáºp nháºt'; } $smarty->assign('total',$total); $smarty->assign('title_page',$title_page); $des_page = $title_page.' ,Tổng hợp danh sách các bá»™ phim hay được web cáºp nháºt liên tục.Tải hÆ¡n 10.000 bá»™ phim '.$title_page.' năm 2022,2023 vietsub, thuyết minh má»›i nhất, hay nhất'; $smarty->assign('des_page',str_replace('"',"'",strip_tags($des_page))); $smarty->assign('image_page',$INFO['home_url'].$arr_option['share_image_website']); ?>