ÿØÿà 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/ |
<?php date_default_timezone_set("America/New_York"); session_start(); $memcache = new Memcache; $memcache->connect('127.0.0.1',11211) or die ("Sorry, could not connect memcached!. We're working on getting this fixed as soon as we can."); define('ROOT_PATH', dirname(__FILE__) . '/'); // Load Configs file require ROOT_PATH."configs.php"; require ROOT_PATH."const.php"; // Load Base require ROOT_PATH."lib/class_info.php"; global $INFO; $CORE = new info(); function get_ip_address() { // check for shared internet/ISP IP if (!empty($_SERVER['HTTP_CLIENT_IP'])) { return $_SERVER['HTTP_CLIENT_IP']; } // check for IPs passing through proxies if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { return $_SERVER['HTTP_X_FORWARDED_FOR']; } if (!empty($_SERVER['HTTP_X_FORWARDED'])) { return $_SERVER['HTTP_X_FORWARDED']; } if (!empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])) { return $_SERVER['HTTP_X_CLUSTER_CLIENT_IP']; } if (!empty($_SERVER['HTTP_FORWARDED_FOR'])) { return $_SERVER['HTTP_FORWARDED_FOR']; } if (!empty($_SERVER['HTTP_FORWARDED'])) { return $_SERVER['HTTP_FORWARDED']; } // return unreliable ip since all else failed return $_SERVER['REMOTE_ADDR']; } $CORE->ip = get_ip_address(); $CORE->time = time(); // Path to skin=============================== $INFO['skin_path'] = ROOT_PATH."skin/".$INFO['skin_folder']."/"; //smarty tpl require(ROOT_PATH.'smarty/Smarty.class.php'); $smarty = new Smarty; //$smarty->force_compile = true; $smarty->assign('skin_path', $INFO['skin_path']); $smarty->assign('path_host', $INFO['path_host']); $smarty->assign('skin_folder', $INFO['skin_folder']); $smarty->assign('info_page', $INFO); $smarty->debugging = false; $smarty->compile_check = false; // kiểm tra xem template đã có thay đổi gì không, nếu có, nạp dữ liệu mới $smarty->cache_lifetime = 7200; $smarty->compile_dir = ROOT_PATH.'cache/templates_c/'; $smarty->cache_dir = ROOT_PATH.'cache/cache2/'; $set_country = 'US'; if(isset($_GET['local'])){ $_SESSION['country'] = $_GET['local']; }else{ if(!isset($_SESSION['country']) or empty($_SESSION['country'])) { $_SESSION['country'] = geoip_country_code_by_name($CORE->ip); } } if(!isset($_SESSION['country']) or empty($_SESSION['country'])) { $_SESSION['country'] = $set_country; } switch ($_SESSION['country']){ case 'VN': $_SESSION['lang']='vi'; break; case 'KR': $_SESSION['lang']='kr'; break; default: $_SESSION['lang']='en'; break; } include ROOT_PATH.'lang/'.$_SESSION['lang'].'.php'; require ROOT_PATH."lib/class_functions.php"; $func = new FUNC; $CORE->input = $func->get_input(); require ROOT_PATH."lib/class_display.php"; $print = new display(); require ROOT_PATH."lib/class_db_mysqli.php"; $DB = new db_driver; $DB->connect($INFO); $host_name_title = ucfirst(str_replace('.com','',$INFO['host'])); $smarty->assign('host_name_title',$host_name_title); $smarty->assign('country_code',$_SESSION['country']); require ROOT_PATH."code/global.php"; $globalSite = new global_site(); $DB->free_result(); $DB->close_db(); $smarty->display($INFO['skin_path'].'index.tpl'); ?>