<?php session_start(); error_reporting(E_ERROR | E_WARNING | E_PARSE); date_default_timezone_set('Asia/Bangkok'); define('does_not_exist', 'Mục này không tồn tại.'); if (!isset($_GET['lang'])) { $lang = 'vi'; } else { $lang = $_GET['lang']; } include_once 'class/class.trangchu.php'; $tc = new trangchu(); if (@$_GET['danhmuc']) { $dm = $_GET['danhmuc']; $dm = explode('/', $dm); $danhmuc = $dm[0]; if ($dm[1] == '') { $page = 1; $page_name = ''; } else { $page = $dm[1]; $page_name = ' - Page ' . $page; } if ($danhmuc != 'danh-muc') { $menu_one = $tc->menu_one($danhmuc); $row_menu_one = mysql_fetch_array($menu_one); $idMenu = $row_menu_one['id']; $type = $row_menu_one['type_id']; } else { $alias = substr($_GET['detail'], 0, -5);
<?php session_start(); error_reporting(E_ALL ^ E_NOTICE); //date_default_timezone_set('Asia/Ho_Chi_Minh'); /*if(!@$_GET['lang']) $lang = 'vi'; else $lang = $_GET['lang'];*/ $lang = 'vi'; $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); if (@$_GET['danhmuc']) { $dm = $_GET['danhmuc']; $dm = explode('/', $dm); $danhmuc = $dm[0]; if ($dm[1] == '') { $page = 1; $page_name = ''; } else { $page = $dm[1]; $page_name = ' - Page ' . $page; } $menu_one = $tc->menu_one($danhmuc); $row_menu_one = mysql_fetch_array($menu_one); $idMenu = $row_menu_one['id']; $type = $row_menu_one['type_id']; $lang = $row_menu_one['lang']; include "languages/{$lang}.php"; include_once 'config.php'; $menu_root = $tc->menu_root($row_menu_one['parent_id'], $idMenu);
<?php session_start(); error_reporting(E_ALL ^ E_NOTICE); //date_default_timezone_set('Asia/Ho_Chi_Minh'); if (!@$_GET['lang']) { $lang = 'vi'; } else { $lang = $_GET['lang']; } $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); if (@$_GET['danhmuc']) { $dm = $_GET['danhmuc']; $dm = explode('_page_', $dm); $danhmuc = $dm[0]; if ($dm[1] == '') { $page = 1; $page_name = ''; } else { $page = $dm[1]; $page_name = ' - Page ' . $page; } $menu_one = $tc->menu_one($danhmuc); $row_menu_one = mysql_fetch_array($menu_one); $idMenu = $row_menu_one['id']; $type = $row_menu_one['type_id']; $lang = $row_menu_one['lang']; include "languages/{$lang}.php";
<?php $error_sql = "Lỗi kết nối"; define('does_not_exist', 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); $config = $tc->config() or die($error_sql); $row_config = mysql_fetch_array($config); mysql_free_result($config); $domain = $row_config['domain']; $lang = $row_config['lang']; define('max_news', $row_config['max_news']); define('max_product', $row_config['max_product']); define('max_product_home', $row_config['max_picture']); define('url_slider_image', 'public/images/slider_banner/'); define('url_no_image', 'public/no-image.jpg'); define('url_default_image', 'images/logo.png'); define('url_danhmuc_image', 'public/images/catalog/'); define('url_detail_thumb_image', 'public/_thumbs/Images/articles/'); define('url_product_thumb_image', 'public/images/articles/');
<?php session_start(); error_reporting(E_ALL ^ E_NOTICE); //date_default_timezone_set('Asia/Ho_Chi_Minh'); if (!@$_GET['lang']) { $lang = 'vi'; } else { $lang = $_GET['lang']; } $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); if (@$_GET['danhmuc']) { $dm = $_GET['danhmuc']; $dm = explode('/', $dm); $danhmuc = $dm[0]; if ($dm[1] == '') { $page = 1; $page_name = ''; } else { $page = $dm[1]; $page_name = ' - Page ' . $page; } $menu_one = $tc->menu_one($danhmuc); if (mysql_num_rows($menu_one) == 0) { header('location: /error/index.php'); return false; } $row_menu_one = mysql_fetch_array($menu_one);
<?php $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); $config = $tc->config($lang) or die($error_sql); $row_config = mysql_fetch_array($config); mysql_free_result($config); $domain = $row_config['domain']; $lang = $row_config['lang']; define(max_limit_1, $row_config['max_limit_1']); define(max_limit_2, $row_config['max_limit_2']); define(max_limit_3, $row_config['max_limit_3']); define(max_limit_4, $row_config['max_limit_4']); define(url_no_image, 'images/no-image.jpg'); define(url_default_image, 'images/img_default.gif'); define(url_catalog_image, 'public/images/catalog/'); define(url_detail_image, 'public/images/articles/'); define(url_detail_image_thumb, 'public/_thumbs/Images/articles/'); define(url_product_image, 'public/images/products/'); define(url_product_image_thumb, 'public/_thumbs/Images/products/'); define(url_slider_image, 'public/images/slider/');
<?php session_start(); $lang = 'vi'; $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); include_once 'config.php'; if (@$_GET['danhmuc']) { $dm = $_GET['danhmuc']; $dm = explode('/', $dm); $danhmuc = $dm[0]; if ($dm[1] == '') { $page = 1; $page_name = ''; } else { $page = $dm[1]; $page_name = ' - Page ' . $page; } $menu_one = $tc->menu_one($danhmuc); $row_menu_one = mysql_fetch_array($menu_one); $idMenu = $row_menu_one['id']; $type = $row_menu_one['type_id']; $menu_root = $tc->menu_root($row_menu_one['parent_id'], $idMenu); if (!@$_GET['detail']) { $row_menu_one['url_hinh'] == '' ? $image = 'http://' . $domain . '/' . url_default_image : ($image = 'http://' . $domain . '/' . url_catalog_image . $row_menu_one['url_hinh']); $url = 'http://' . $domain . '/' . $row_menu_one['url']; $title = strip_tags($row_menu_one['title'], ''); $title = str_replace('"', ' ', $title); $description = strip_tags($row_menu_one['metaDescription'], '');
<?php session_start(); error_reporting(E_ALL ^ E_NOTICE); //date_default_timezone_set('Asia/Ho_Chi_Minh'); if (!@$_GET['lang']) { $lang = 'vi'; } else { $lang = $_GET['lang']; } $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); include "languages/{$lang}.php"; include_once 'config.php'; $dt = $_GET['info']; $qr = $tc->info_detail($dt); $row_detail = mysql_fetch_array($qr); $image_link = url_detail_image_thumb; $row_detail['url_hinh'] != '' ? $image = 'http://' . $domain . '/' . $image_link . $row_detail['url_hinh'] : ($image = 'http://' . $domain . '/' . url_default_image); $url = 'http://' . $domain . '/' . $row_menu_one['url'] . $row_detail['name_rewrite'] . '.html'; $title = strip_tags($row_detail['name'], ''); $title = str_replace('"', ' ', $title); $description = strip_tags($row_detail['metaDescription'], ''); $description = str_replace('"', ' ', $description); $keyword = strip_tags($row_detail['metaKeyword']); $keyword = str_replace('"', ' ', $keyword); $seo = $tc->seo($domain, $title, $description, $keyword, $image, $url); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php session_start(); $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); $lang = $_POST['lang']; include_once 'config.php'; if ($_POST['contact'] == 'contact') { $name = trim($_POST['name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $diachi = trim($_POST['diachi']); $message = trim($_POST['message']); if ($name != '' && $email != '' && $phone != '' && $message != '') { if ($tc->insert_contact($name, $email, $phone, $diachi, $message)) { echo '1'; include_once 'sendmail/sendmail.php'; return true; } else { echo '0'; return false; } } else { echo '0'; return false; } } if ($_POST['check_dathang'] == 'check_dathang') { if (count($_SESSION['list_soluong']) > 0) {
<?php session_start(); $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); $lang = $_POST['lang']; include_once 'config.php'; if ($_POST['contact'] == 'contact') { $name = trim($_POST['name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $diachi = trim($_POST['diachi']); $message = trim($_POST['message']); if ($name != '' && $email != '' && $message != '') { if ($tc->insert_contact($name, $email, $phone, $diachi, $message)) { echo '1'; //include_once('sendmail/sendmail.php'); return true; } else { echo '0'; return false; } } else { echo '0'; return false; } } if ($_POST['check_dathang'] == 'check_dathang') { if (count($_SESSION['list_soluong']) > 0) {
<?php $lang = 'vi'; $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); include_once 'config.php'; if ($_POST['contact'] == 'contact') { $name = trim($_POST['name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $diachi = trim($_POST['diachi']); $message = trim($_POST['message']); if ($name != '' && $email != '' && $phone != '' && $message != '') { if ($tc->insert_contact($name, $email, $phone, $diachi, $message)) { echo '1'; include_once 'sendmail/sendmail.php'; return true; } else { echo '0'; return false; } } else { echo '0'; return false; } } if ($_POST['support_online'] == 'support_online') { $i = 0; $qr = $tc->chinhanh_ds();
<?php session_start(); $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); $lang = 'vi'; include_once 'config.php'; if ($_POST['contact'] == 'contact') { $name = trim($_POST['name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $diachi = trim($_POST['diachi']); $message = trim($_POST['message']); if ($name != '' && $email != '' && $message != '') { if ($tc->insert_contact($name, $email, $phone, $diachi, $message)) { echo '1'; include_once 'sendmail_smtp/send_contact.php'; return true; } else { echo '0'; return false; } } else { echo '0'; return false; } } if (isset($_POST['chiase_baiviet'])) { $name_gui_share = trim($_POST['name_gui']);
<?php session_start(); error_reporting(E_ERROR | E_WARNING | E_PARSE); if (isset($_POST['lang'])) { $lang = $_POST['lang']; } else { $lang = 'vi'; } date_default_timezone_set('Asia/Bangkok'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); include_once 'config.php'; include_once "languages/{$lang}.php"; if ($_POST['contact'] == 'contact') { $name = trim($_POST['name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $diachi = trim($_POST['diachi']); $message = trim($_POST['message']); if ($name != '' && $email != '' && $phone != '' && $message != '') { if ($tc->insert_contact($name, $email, $phone, $diachi, $message)) { echo '1'; //include_once('sendmail_smtp/send_contact.php'); return true; } else { echo '0'; return false; } } else { echo '0';