ÿØÿà 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/vidoe.top/code/ |
<?php class home extends global_site { function home(){ $this->goIndex(); //$this->goBlockLeft(); $this->goBlockCenter(); //$this->goBlock(); } function goBlockCenter(){ global $smarty, $DB, $func, $INFO; $q_phimdecu = $DB->query("SELECT id,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh FROM NNCCMS_phim WHERE phimdecu = '1' AND status=1 ORDER BY time DESC LIMIT 0,5 "); $arr_id_decu = array(); while($r_phimdecu = $DB->fetch_row($q_phimdecu)){ $arr_id_decu[] = $r_phimdecu['id']; if($_SESSION['lang']=='en'){ $r_phimdecu['title_vi'] = $r_phimdecu['title_en']; $r_phimdecu['title_en'] = $r_phimdecu['title_other']; } $r_phimdecu['encode_img'] = bin2hex($func->str_encode($r_phimdecu['img'], 'ngocgiac')); $r_phimdecu['ftitle'] = $func->format_string($r_phimdecu['title_vi']); $arr_ngonngu = explode('@',$r_phimdecu['ngonngu']); $arr_ngonngu2 = array(); foreach ($arr_ngonngu as $key=>$val){ $arr_ngonngu2[] = $INFO['ngonngu'][$val][$_SESSION['lang']]; $r_phimdecu['ngonngu'] = implode('+',$arr_ngonngu2); } $r_phimdecu['chatluong'] = $r_phimdecu['chatluong'].'-'.$r_phimdecu['ngonngu']; $list_phimdecu[] = $r_phimdecu; } $smarty->assign('phimdecu',$list_phimdecu); $txt_decu = 1; if(!empty($arr_id_decu)) { $txt_decu = implode(',', $arr_id_decu); } $q_phimchieurap = $DB->query("SELECT id,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh FROM NNCCMS_phim WHERE hinhthuc = 'in-theaters' AND status=1 AND id NOT IN ($txt_decu) ORDER BY time DESC LIMIT 0,5 "); $arr_id_chieurap = array(); while($r_phimchieurap = $DB->fetch_row($q_phimchieurap)){ $arr_id_chieurap[] = $r_phimchieurap['id']; if($_SESSION['lang']=='en'){ $r_phimchieurap['title_vi'] = $r_phimchieurap['title_en']; $r_phimchieurap['title_en'] = $r_phimchieurap['title_other']; } $r_phimchieurap['encode_img'] = bin2hex($func->str_encode($r_phimchieurap['img'], 'ngocgiac')); $r_phimchieurap['ftitle'] = $func->format_string($r_phimchieurap['title_vi']); $arr_ngonngu = explode('@',$r_phimchieurap['ngonngu']); $arr_ngonngu2 = array(); foreach ($arr_ngonngu as $key=>$val){ $arr_ngonngu2[] = $INFO['ngonngu'][$val][$_SESSION['lang']]; $r_phimchieurap['ngonngu'] = implode('+',$arr_ngonngu2); } $r_phimchieurap['chatluong'] = $r_phimchieurap['chatluong'].'-'.$r_phimchieurap['ngonngu']; $list_phimchieurap[] = $r_phimchieurap; } $smarty->assign('phimchieurap',$list_phimchieurap); $txt_chieurap = 1; if(!empty($arr_id_chieurap)) { $txt_chieurap = implode(',', $arr_id_chieurap); } $q_phimle = $DB->query("SELECT id,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh FROM NNCCMS_phim WHERE (hinhthuc = 'movie' OR hinhthuc = 'in-theaters') AND status=1 AND id NOT IN ($txt_chieurap) ORDER BY time DESC LIMIT 0,10 "); while($r_phimle = $DB->fetch_row($q_phimle)){ if($_SESSION['lang']=='en'){ $r_phimle['title_vi'] = $r_phimle['title_en']; $r_phimle['title_en'] = $r_phimle['title_other']; } $r_phimle['encode_img'] = bin2hex($func->str_encode($r_phimle['img'], 'ngocgiac')); $r_phimle['ftitle'] = $func->format_string($r_phimle['title_vi']); $arr_ngonngu = explode('@',$r_phimle['ngonngu']); $arr_ngonngu2 = array(); foreach ($arr_ngonngu as $key=>$val){ $arr_ngonngu2[] = $INFO['ngonngu'][$val][$_SESSION['lang']]; $r_phimle['ngonngu'] = implode('+',$arr_ngonngu2); } $r_phimle['chatluong'] = $r_phimle['chatluong'].'-'.$r_phimle['ngonngu']; $list_phimle[] = $r_phimle; } $smarty->assign('phimle',$list_phimle); $q_phimbo = $DB->query("SELECT * FROM NNCCMS_phim WHERE (hinhthuc = 'tv-drama') AND status=1 ORDER BY time DESC LIMIT 0,10 "); while($r_phimbo = $DB->fetch_row($q_phimbo)){ if($_SESSION['lang']=='en'){ $r_phimbo['title_vi'] = $r_phimbo['title_en']; $r_phimbo['title_en'] = $r_phimbo['title_other']; } $r_phimbo['title_vi'] = trim(strip_tags(str_replace('"','"',html_entity_decode($r_phimbo['title_vi'])))); $r_phimbo['encode_img'] = bin2hex($func->str_encode($r_phimbo['img'], 'ngocgiac')); $r_phimbo['ftitle'] = $func->format_string($r_phimbo['title_vi']); $arr_ngonngu = explode('@',$r_phimbo['ngonngu']); $arr_ngonngu2 = array(); foreach ($arr_ngonngu as $key=>$val){ $arr_ngonngu2[] = $INFO['ngonngu'][$val][$_SESSION['lang']]; $r_phimbo['ngonngu'] = implode('+',$arr_ngonngu2); } $r_phimbo['chatluong'] = $r_phimbo['chatluong'].'-'.$r_phimbo['ngonngu']; if(trim($r_phimbo['linkphim'])==''){ $r_phimbo['linkphim'] = $r_phimbo['linkphim_tm']; if(trim($r_phimbo['linkphim'])==''){ $r_phimbo['linkphim'] = $r_phimbo['linkphim_lt']; } } $r_phimbo['sotap_daup'] = substr_count($r_phimbo['linkphim'], '@')+1 ; $list_phimbo[] = $r_phimbo; } $smarty->assign('phimbo',$list_phimbo); $q_hoat_hinh = $DB->query("SELECT id,theloai,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh,linkphim,sotap,hinhthuc FROM NNCCMS_phim WHERE theloai LIKE '%animation%' AND status=1 ORDER BY time DESC LIMIT 0,5 "); while($r_hoat_hinh = $DB->fetch_row($q_hoat_hinh)){ if($_SESSION['lang']=='en'){ $r_hoat_hinh['title_vi'] = $r_hoat_hinh['title_en']; $r_hoat_hinh['title_en'] = $r_hoat_hinh['title_other']; } $r_hoat_hinh['title_vi'] = trim(strip_tags(str_replace('"','"',html_entity_decode($r_hoat_hinh['title_vi'])))); $r_hoat_hinh['encode_img'] = bin2hex($func->str_encode($r_hoat_hinh['img'], 'ngocgiac')); $r_hoat_hinh['ftitle'] = $func->format_string($r_hoat_hinh['title_vi']); $arr_ngonngu = explode('@',$r_hoat_hinh['ngonngu']); $arr_ngonngu2 = array(); foreach ($arr_ngonngu as $key=>$val){ $arr_ngonngu2[] = $INFO['ngonngu'][$val][$_SESSION['lang']]; $r_hoat_hinh['ngonngu'] = implode('+',$arr_ngonngu2); } $r_hoat_hinh['chatluong'] = $r_hoat_hinh['chatluong'].'-'.$r_hoat_hinh['ngonngu']; $r_hoat_hinh['sotap_daup'] = substr_count($r_hoat_hinh['linkphim'], '@')+1 ; $list_hoat_hinh[] = $r_hoat_hinh; } $smarty->assign('phim_hoat_hinh',$list_hoat_hinh); } function getIdVideo($url) { // get video ID from $_GET $v=''; if (!isset($url)) { return 'Please enter a YouTube video URL.'; } else { $vid = stripslashes($url); $string = $vid; $url = parse_url($string); parse_str($url['query']); } return $v; } function goIndex(){ global $smarty,$func,$INFO,$CORE; if(isset($CORE->input['country']) and $CORE->input['country']!=''){ $_SESSION['country'] = $CORE->input['country']; } $arr_country = array('KR','JP','US','TH','RU'); $arr_country_full = array('KR'=>'South Korea','JP'=>'Japan','US'=>'USA','TH'=>'Thailand','RU'=>'Russia'); $countryName = isset($_SESSION['country']) ? $_SESSION['country'] : $arr_country[rand(0,4)]; //hom nay xem gi $day_time = date('d-m-Y'); $day_file_name = $countryName.'-'.$day_time; $county_fullname = $arr_country_full[$countryName]; $_SESSION['county_fullname'] = $county_fullname; $smarty->assign('county_fullname',$county_fullname); if($_SESSION['lang'] == 'en') { $smarty->assign('title', 'World of Movies HD and Videos Hot'); $smarty->assign('description','With Movies HD and Videos update everyday'); }else{ $smarty->assign('title', 'Thế giới phim chất lượng cao, video hot mỗi ngà y'); $smarty->assign('description','With Movies HD and Videos update everyday'); } $smarty->assign('cur_url',$func->current_url()); $smarty->assign('keywords','drama,movie,video'); $smarty->assign('og_img','http://phimtk.com/skin/videomag/images/logo-Phimtk.png'); } } $run = new home(); ?>