get_client_ip(); // check ip is banned $checkIpResult = $d->o_fet("SELECT COUNT(`ip`) as `total` FROM `#_banned_ip` WHERE `ip` = '$ip' AND `is_banned` = 1 "); if ($checkIpResult[0]['total']) { header("HTTP/1.0 404 Not Found"); die('404 Not Found'); } } if (defined('__PRODUCT_CACHE_PATH')) { ob_start(); } $cacheFile = __ROOT_PATH . '/tmp/html/' . md5('information') . '.cache'; // Cache file path if (file_exists($cacheFile) && (time() - filemtime($cacheFile)) < 3600) { $information = unserialize(file_get_contents($cacheFile)); } else { $information = $d->simple_fetch("select * from #_thongtin limit 0,1"); // Cache the result file_put_contents($cacheFile, serialize($information)); } $SETTINGS = $d->getAllSettings(); $url_page = $d->fullAddress(); unset($_SESSION['nav']); // $d->getActive($com,$_SESSION['lang']); if (isset($_GET['product-id'])) { $ctsp = $d->o_fet("select * from #_sanpham where hien_thi = 1 and alias_" . $_SESSION['lang'] . " = '" . $com . "'"); if (count($ctsp) == 0) { $d->location(URLPATH . "404.html"); $d->disconnect(); exit; } } if (isset($_GET['pid'])) { $pid = intval($_GET['pid']); $ctsp = $d->o_fet("select alias_" . $_SESSION['lang'] . " from #_sanpham where hien_thi = 1 and id = " . $pid); if (count($ctsp) == 0) { $d->location(URLPATH . "404.html"); exit; } else { $d->location(URLPATH . $ctsp[0]['alias_' . $_SESSION['lang']] . '.html'); exit; } } //set layout from admin setting $opt_view_san_pham = $d->getOption('view_san_pham'); $view_san_pham = ($opt_view_san_pham)?$opt_view_san_pham['option_value_1']:''; if (!isset($_COOKIE['productLayout']) && $view_san_pham) { $_COOKIE['productLayout'] = $view_san_pham; } ?> '; } else { $exp_cal = explode("&", $d->fullAddress()); $exp_cal = explode("?", $exp_cal[0]); echo ''; } ?> " rel="shortcut icon" type="image/x-icon" /> // // '; ?> getOption('view_website_fullwidth'); $view_right_sidebar_large = $d->getOption('view_right_sidebar_large'); $body_class = $view_website_fullwidth?'full-width':''; $body_class.= $view_right_sidebar_large?' sidebar-right-large':''; $body_class.= ($com != '')?' module':''; //echo $source; $body_class.= ' source-'.$source; $body_class.= ' com-'.$com; ?>
Chat Zalo Zalo
Nhắn tin Zalo cho chúng tôi
Fanpage
disconnect() ?>