| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/nhadatkhangdien.net-bk/public_html/admin/lib/ |
Upload File : |
<?php
$com = (isset($_REQUEST['com'])) ? addslashes($_REQUEST['com']) : "";
$act = (isset($_REQUEST['act'])) ? addslashes($_REQUEST['act']) : "";
$d = new database($config['database']);
switch($com){
case 'thoat':
logout();
break;
/*case 'hinh-anh':
$source = "hinhanh";
$template = isset($_GET['id']) ? "hinhanh_detail" : "hinhanh";
break;
case 'ho-tro':
$source = "hotro";
$template ="hotro";
break; */
case 'du-an':
$source = "sanpham";
$template = isset($_GET['id']) ? "sanpham_detail" : "sanpham";
break;
/*case 'san-pham-khuyen-mai':
$source="sanphamkhuyenmai";
$template ="sanphamkhuyenmai";
break;
case 'san-pham-xem-nhieu-nhat':
$source="sanphamxnn";
$template ="sanphamxnn";
break;
*/
case 'news':
$source = "news";
$template = isset($_GET['id']) ? "news_detail" : "news";
break;
case 'gioi-thieu':
$source = "gioithieu";
$template = isset($_GET['id']) ? "gioithieu_detail" : "gioithieu";
break;
case 'video':
$source = "vdo";
$template = isset($_GET['id']) ? "vdo_detail" : "vdo";
break;
/*case 'inan':
$source = "inan";
$template = isset($_GET['id']) ? "inan_detail" : "inan";
break;
case 'hoi-dap':
$source = "hoidap";
$template = isset($_GET['id']) ? "hoidap_detail" : "hoidap";
break;
case 'video':
$source = "video";
$template ="video";
break;
case 'album':
$source = "alpum";
$template = isset($_GET['id']) ? "alpum_detail" : "alpum";
break;
case 'khuyen-mai':
$source = "khuyenmai";
$template = isset($_GET['id']) ? "khuyenmai_detail" : "khuyenmai";
break;
case 'ban-do':
$source = "bando";
$template = "bando";
break; */
case 'lien-he':
$source = "contact";
$template = "contact";
break;
case 'tim-kiem':
$source = "timkiem";
$template = "timkiem";
break;
/*
case 'gioi-thieu':
$source = "about";
$template = "about";
break; */
/*case 'khuyen-mai':
$source = "khtb";
$template = isset($_GET['id']) ? "khtb_detail" : "khtb";
break;
case 'tuyen-dung':
$source = "htpp";
$template = "htpp";
break;
case 'gio-hang':
$source = "giohang";
$template = "giohang";
break;
//case 'htpp':
// $source = "htpp";
// $template = "htpp";
// break;
case 'tu-van':
$source = "tuvan";
$template = "tuvan";
break;
//case 'khach-hang-tieu-bieu':
// $source = "khtb";
// $template = isset($_GET['id']) ? "khtb_detail" : "khtb";
// break;
/*case 'dich-vu':
$source = "khtb";
$template = isset($_GET['id']) ? "khtb_detail" : "khtb";
break;
case 'thanh-toan':
$source = "thanhtoan";
$template = "thanhtoan";
break;*/
default:
$source = "index";
$template = "index";
break;
}
//trit(_source.$source.".php");
if($source) include _source.$source.".php";
if(isset($_REQUEST['com'])){
if($_REQUEST['com']=='logout')
{
session_unregister($login_name);
header("Location:index.php");
}
}
$sql_title = "select ten from #_title limit 0,1";
$d->query($sql_title);
$row_title= $d->fetch_array();
# lay meta tim kiem
$sql_meta = "select ten from #_meta limit 0,1";
$d->query($sql_meta);
$row_meta= $d->fetch_array();
?>