| Server IP : 103.48.194.25 / Your IP : 216.73.217.33 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 : 8.2.20 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/sources/ |
Upload File : |
<?php if(!defined('_source')) die("Error");
if(isset($_GET['id'])){
#tin tuc chi tiet
$id = addslashes($_GET['id']);
$sql = "select ten,mota,noidung from #_news where hienthi=1 and id='".$id."'";
$d->query($sql);
$tintuc_detail = $d->result_array();
$title_bar=$tintuc_detail[0]['ten'].' - ';
#các tin cu hon
$sql_khac = "select ten,tenkhongdau,ngaytao,id from #_news where hienthi=1 and id_item='4' and id <>'".$id."' order by stt,ngaytao desc limit 0,5";
$d->query($sql_khac);
$tintuc_khac = $d->result_array();
}elseif(isset($_GET['idc'])){
$id = addslashes($_GET['idc']);
$sql="select ten,id from #_news_item where tenkhongdau='$id' limit 0,1 ";
$d->query($sql);
$loaitin=$d->result_array();
$title_bar=$loaitin[0]['ten'].' - ';
$title_tcat=$loaitin[0]['ten'];
$sql_tintuc = "select ten,tenkhongdau,mota,thumb,id from #_news where hienthi=1 and id_item='".$loaitin[0]['id']."' order by stt,ngaytao desc";
$d->query($sql_tintuc);
$tintuc = $d->result_array();
$curPage = isset($_GET['p']) ? $_GET['p'] : 1;
$url=getCurrentPageURL();
$maxR=9;
$maxP=5;
$paging=paging_home($tintuc, $url, $curPage, $maxR, $maxP);
$tintuc=$paging['source'];
}else{
$title_bar='Tin tức - ';
$title_tcat='Tin tức';
$sql_tintuc = "select ten,tenkhongdau,mota,photo,id from #_news where hienthi=1 and id_item='4' order by stt,ngaytao desc";
$d->query($sql_tintuc);
$tintuc = $d->result_array();
$curPage = isset($_GET['p']) ? $_GET['p'] : 1;
$url=getCurrentPageURL();
$maxR=9;
$maxP=5;
$paging=paging_home($tintuc, $url, $curPage, $maxR, $maxP);
$tintuc=$paging['source'];
}
?>