ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/vidoe.top/code/home_bk2.php
<?php
class home extends global_site {
	function home(){
        $this->goIndex();
        //$this->goBlockLeft();
        $this->goBlockCenter();
        //$this->goBlock();
	}
    function goBlockCenter(){
        global $smarty, $DB, $func, $INFO, $memcache;

        $key_phimdecu = md5('phim-de-cu-'.$_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 NNCCMS_phim WHERE phimdecu = '1' AND status=1 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['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'];*/
                $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 NNCCMS_phim WHERE hinhthuc = 'in-theaters' AND status=1 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 NNCCMS_phim WHERE hinhthuc = 'in-theaters' AND status=1 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']);

                /*$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;
                $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 NNCCMS_phim WHERE (hinhthuc = 'movie' OR hinhthuc = 'in-theaters') AND status=1 AND id NOT IN ($txt_decu) AND id NOT IN ($txt_chieurap) AND theloai NOT LIKE '%animation%' 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 NNCCMS_phim WHERE (hinhthuc = 'movie' OR hinhthuc = 'in-theaters') AND status=1 AND id NOT IN ($txt_decu) AND id NOT IN ($txt_chieurap) AND theloai NOT LIKE '%animation%' 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 NNCCMS_phim WHERE (hinhthuc = 'tv-drama') AND theloai NOT LIKE '%animation%' AND id NOT IN ($txt_decu) AND status=1 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 NNCCMS_phim WHERE (hinhthuc = 'tv-drama') AND theloai NOT LIKE '%animation%' AND id NOT IN ($txt_decu) AND status=1 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('"', '&quot;', 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 NNCCMS_phim WHERE theloai LIKE '%animation%' 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 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 NNCCMS_phim WHERE theloai LIKE '%animation%' 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 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('"', '&quot;', 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;
        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'] != 'vi') {
        $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('image','https://drive.google.com/uc?export=download&id=0B3sDIfFrXDx_ZFBYYUJ1bC1qaVU');
    }
}
$run = new home();
?>

ZeroDay Forums Mini