ÿØÿà 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 { public function __construct(){ $this->goIndex(); //$this->goBlockLeft(); $this->goBlockCenter(); } function goBlockCenter(){ global $smarty, $DB, $func, $INFO, $memcache; $key_phimdecu = md5('phim-de-cu1-'.$_SESSION['lang']); // Unique Words $cache_result_phimdecu = $memcache->get($key_phimdecu); // Memcached object if($cache_result_phimdecu){ $list_phimdecu = $cache_result_phimdecu; }else { $q_phimdecu = $DB->query("SELECT id,theloai,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh,linkphim,sotap,hinhthuc FROM gtdesign_phim WHERE phimdecu = '1' AND status=1 AND linkphim NOT LIKE '%bilutv.net%' AND linkphim NOT LIKE '%bilutv.com%' AND linkphim NOT LIKE '%phimbathu.com%' ORDER BY time DESC LIMIT 0,5 "); while ($r_phimdecu = $DB->fetch_row($q_phimdecu)) { if ($_SESSION['lang'] != 'vi') { $r_phimdecu['title_vi'] = $r_phimdecu['title_en']; $r_phimdecu['title_en'] = $r_phimdecu['title_other']; } $r_phimdecu['ftitle'] = $func->format_string($r_phimdecu['title_vi']); $r_phimdecu['plot'] = strip_tags(html_entity_decode($r_phimdecu['plot'])); $r_phimdecu['sotap_daup'] = substr_count($r_phimdecu['linkphim'], '@') + 1; $list_phimdecu[] = $r_phimdecu; } $memcache->set($key_phimdecu, $list_phimdecu, MEMCACHE_COMPRESSED, 1200); } $arr_id_decu = array(); foreach ($list_phimdecu as $val){ $arr_id_decu[] = $val['id']; } $smarty->assign('phimdecu',$list_phimdecu); $txt_decu = 1; if(!empty($arr_id_decu)) { $txt_decu = implode(',', $arr_id_decu); } $key_phimchieurap = md5('phim-chieu-rap'."SELECT id,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh FROM gtdesign_phim WHERE hinhthuc = 'in-theaters' AND status=1 AND linkphim NOT LIKE '%bilutv.net%' AND linkphim NOT LIKE '%bilutv.com%' AND linkphim NOT LIKE '%phimbathu.com%' AND id NOT IN ($txt_decu) ORDER BY time DESC LIMIT 0,5".$_SESSION['lang']); // Unique Words $cache_result_phimchieurap = $memcache->get($key_phimchieurap); // Memcached object if($cache_result_phimchieurap){ $list_phimchieurap = $cache_result_phimchieurap; }else { $q_phimchieurap = $DB->query("SELECT id,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh FROM gtdesign_phim WHERE hinhthuc = 'in-theaters' AND status=1 AND linkphim NOT LIKE '%bilutv.net%' AND linkphim NOT LIKE '%bilutv.com%' AND linkphim NOT LIKE '%phimbathu.com%' AND id NOT IN ($txt_decu) ORDER BY time DESC LIMIT 0,5 "); while ($r_phimchieurap = $DB->fetch_row($q_phimchieurap)) { if ($_SESSION['lang'] != 'vi') { $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']); $list_phimchieurap[] = $r_phimchieurap; } $memcache->set($key_phimchieurap, $list_phimchieurap, MEMCACHE_COMPRESSED, 1200); } $arr_id_chieurap = array(); foreach ($list_phimchieurap as $val){ $arr_id_chieurap[] = $val['id']; } $smarty->assign('phimchieurap',$list_phimchieurap); $txt_chieurap = 1; if(!empty($arr_id_chieurap)) { $txt_chieurap = implode(',', $arr_id_chieurap); } $key_phimle = md5('phim-le-moi'."SELECT id,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh FROM gtdesign_phim WHERE (hinhthuc = 'movie' OR hinhthuc = 'in-theaters') AND status=1 AND linkphim NOT LIKE '%bilutv.net%' AND linkphim NOT LIKE '%bilutv.com%' AND linkphim NOT LIKE '%phimbathu.com%' AND id NOT IN ($txt_decu) AND id NOT IN ($txt_chieurap) AND theloai NOT LIKE '%anime%' ORDER BY time DESC LIMIT 0,10".$_SESSION['lang']); // Unique Words $cache_result_phimle = $memcache->get($key_phimle); // Memcached object if($cache_result_phimle){ $list_phimle = $cache_result_phimle; }else { $q_phimle = $DB->query("SELECT id,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh FROM gtdesign_phim WHERE (hinhthuc = 'movie' OR hinhthuc = 'in-theaters') AND status=1 AND linkphim NOT LIKE '%bilutv.net%' AND linkphim NOT LIKE '%bilutv.com%' AND linkphim NOT LIKE '%phimbathu.com%' AND id NOT IN ($txt_decu) AND id NOT IN ($txt_chieurap) AND theloai NOT LIKE '%anime%' ORDER BY time DESC LIMIT 0,10 "); while ($r_phimle = $DB->fetch_row($q_phimle)) { if ($_SESSION['lang'] != 'vi') { $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; } $memcache->set($key_phimle, $list_phimle, MEMCACHE_COMPRESSED, 1200); } $arr_id_phimle = array(); foreach ($list_phimle as $val){ $arr_id_phimle[] = $val['id']; } $txt_phimle = 1; if(!empty($arr_id_phimle)) { $txt_phimle = implode(',', $arr_id_phimle); } $smarty->assign('phimle',$list_phimle); $key_phimbo = md5("SELECT * FROM gtdesign_phim WHERE (hinhthuc = 'tv-drama') AND theloai NOT LIKE '%anime%' AND id NOT IN ($txt_decu) AND status=1 AND linkphim NOT LIKE '%bilutv.net%' AND linkphim NOT LIKE '%bilutv.com%' AND linkphim NOT LIKE '%phimbathu.com%' ORDER BY time DESC LIMIT 0,10 ".$_SESSION['lang']); // Unique Words $cache_result_phimbo = $memcache->get($key_phimbo); // Memcached object if($cache_result_phimbo){ $list_phimbo = $cache_result_phimbo; }else { $q_phimbo = $DB->query("SELECT * FROM gtdesign_phim WHERE (hinhthuc = 'tv-drama') AND theloai NOT LIKE '%anime%' AND id NOT IN ($txt_decu) AND status=1 AND linkphim NOT LIKE '%bilutv.net%' AND linkphim NOT LIKE '%bilutv.com%' AND linkphim NOT LIKE '%phimbathu.com%' ORDER BY time DESC LIMIT 0,10 "); while ($r_phimbo = $DB->fetch_row($q_phimbo)) { if ($_SESSION['lang'] != 'vi') { $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; } $memcache->set($key_phimbo, $list_phimbo, MEMCACHE_COMPRESSED, 1200); } $arr_id_phimbo = array(); foreach ($list_phimbo as $val){ $arr_id_phimbo[] = $val['id']; } $txt_phimbo = 1; if(!empty($arr_id_phimbo)) { $txt_phimbo = implode(',', $arr_id_phimbo); } $smarty->assign('phimbo',$list_phimbo); $key_hoat_hinh = md5("SELECT id,theloai,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh,linkphim,sotap,hinhthuc FROM gtdesign_phim WHERE theloai LIKE '%anime@%' AND id NOT IN ($txt_phimle) AND id NOT IN ($txt_phimbo) AND id NOT IN ($txt_chieurap) AND id NOT IN ($txt_decu) AND status=1 AND linkphim NOT LIKE '%bilutv.net%' AND linkphim NOT LIKE '%bilutv.com%' AND linkphim NOT LIKE '%phimbathu.com%' ORDER BY time DESC LIMIT 0,10 ".$_SESSION['lang']); // Unique Words $cache_result_hoat_hinh = $memcache->get($key_hoat_hinh); // Memcached object if($cache_result_hoat_hinh){ $list_hoat_hinh = $cache_result_hoat_hinh; }else { $q_hoat_hinh = $DB->query("SELECT id,theloai,title_vi,title_en,title_other,img,chatluong,ngonngu,namphathanh,linkphim,sotap,hinhthuc FROM gtdesign_phim WHERE theloai LIKE '%anime@%' AND id NOT IN ($txt_phimle) AND id NOT IN ($txt_phimbo) AND id NOT IN ($txt_chieurap) AND id NOT IN ($txt_decu) AND status=1 AND linkphim NOT LIKE '%bilutv.net%' AND linkphim NOT LIKE '%bilutv.com%' AND linkphim NOT LIKE '%phimbathu.com%' ORDER BY time DESC LIMIT 0,10 "); while ($r_hoat_hinh = $DB->fetch_row($q_hoat_hinh)) { if ($_SESSION['lang'] != 'vi') { $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; } $memcache->set($key_hoat_hinh, $list_hoat_hinh, MEMCACHE_COMPRESSED, 1200); } $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; $county_fullname = geoip_country_name_by_name($CORE->ip); $_SESSION['county_fullname'] = $county_fullname; $smarty->assign('county_fullname',$county_fullname); if($_SESSION['lang'] != 'vi') { $smarty->assign('title', 'World of entertaiment with free Movies, TV and Videos'); $smarty->assign('description','Watch free hd movies fast, fastest video updates, latest. Create a free video channel no ads. The world of movies, films, videos for everyone.'); }else{ $smarty->assign('title', 'Thế giá»›i giải trà vá»›i phim và video miá»…n phÃ'); $smarty->assign('description','Xem phim hd miá»…n phà tốc Ä‘á»™ nhanh, video cáºp nháºt nhanh nhất, má»›i nhất. Tạo kênh video miá»…n phà không quảng cáo. Thế giá»›i nghe nhìn cho má»i ngÆ°á»i.'); } $smarty->assign('cur_url',$func->current_url()); $smarty->assign('keywords','drama,movie,video'); $smarty->assign('image',$INFO['home_url'].'skin/'.$INFO['skin_folder'].'/img/vidoe-logo.png'); } } $run = new home(); ?>