���� 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/ |
<?php define('ADMIN_USERNAME','admin'); define('ADMIN_PASSWORD','NHG#6789-2017'); if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_USER'] != ADMIN_USERNAME ||$_SERVER['PHP_AUTH_PW'] != ADMIN_PASSWORD) { header("WWW-Authenticate: Basic realm=\"Login\""); header("HTTP/1.0 401 Unauthorized"); echo '<html><body> <h1>Rejected!</h1> <big>Wrong Username or Password!</big> </body></html>'; exit(); } ini_set("display_errors", true); //error_reporting (E_ERROR | E_WARNING | E_PARSE); date_default_timezone_set("Asia/Ho_Chi_minh"); session_start(); $memcache = new Memcache; $memcache->connect('127.0.0.1',11211) or die ("Sorry, could not connect memcached!"); /*$memcache = new Memcached(); $memcache->addServer("127.0.0.1", 11211) or die ("Sorry, could not connect memcached!");*/ define('SESSION_TIME_LIFE',ini_get('session.gc_maxlifetime')); define('ROOT_PATH', dirname(__FILE__) . '/'); require ROOT_PATH."include/configs.php"; require ROOT_PATH."include/const.php"; require ROOT_PATH."vendor/autoload.php"; $smarty = new Smarty(); $smarty->setTemplateDir(ROOT_PATH.'smarty/template'); $smarty->setConfigDir(ROOT_PATH.'smarty/config'); $smarty->setCompileDir(ROOT_PATH.'smarty/compile'); $smarty->setCacheDir(ROOT_PATH.'smarty/cache'); $smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); $smarty->setCompileCheck(true);//dat false khi can cache (product), true khi dang dev $detect = new \Detection\MobileDetect; $deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer'); require ROOT_PATH."lib/class_info.php"; $CORE = new info(); $INFO['skin_path'] = ROOT_PATH."layout/adminlte320rc/"; $smarty->assign('path_skin','adminlte320rc'); $smarty->assign('home_url',$INFO['home_url']); $smarty->assign('arr_info',$INFO); 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.php"; $DB = new db_driver; $DB->connect($INFO); require ROOT_PATH."include/functions/index.php"; require ROOT_PATH."code/admin_global.php"; $DB->free_result(); $DB->close_db(); $smarty->display($INFO['skin_path'].'index.tpl'); ?>