ÿØÿà 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/public_html/ |
Upload File : |
<?php /*----------------------------------------*\ | Copyright © C-ILY | | Phone: 0983.998.994 | | Y!m: notepad.html | | Email: truongpv87@gmail.com | \*----------------------------------------*/ define('CILY',true); include('#includes/config.php'); $sitemap = '<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="sitemap.xsl"?> <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>'.URL_SITE.'</loc> <changefreq>daily</changefreq> <priority>1.0</priority> <lastmod>'.gmstrftime('%Y-%m-%d',time()).'</lastmod> </url> '; $lcat = @mysql_query("SELECT cat_name_ascii, id FROM cily_cats"); while ($cat = @mysql_fetch_array ($lcat)){ $sitemap .= ' <url> <loc>'.URL_SITE.'/ls/'.$cat['cat_name_ascii'].'-c'.$cat['id'].'.html</loc> <changefreq>daily</changefreq> <priority>0.8</priority> <lastmod>'.gmstrftime('%Y-%m-%d',time()).'</lastmod> </url> '; } $news = @mysql_query("SELECT post_name_ascii, post_cat, post_time, id FROM cily_posts"); while ($lnews = @mysql_fetch_array ($news)){ $cat_post = @mysql_fetch_array (@mysql_query("SELECT cat_name_ascii, id FROM cily_cats WHERE id = ".$lnews['post_cat'])); $sitemap .= ' <url> <loc>'.URL_SITE.'/bv/'.$cat_post['cat_name_ascii'].'-c'.$cat_post['id'].'/'.$lnews['post_name_ascii'].'-p'.$lnews['id'].'.html</loc> <changefreq>Always</changefreq> <priority>0.6</priority> <lastmod>'.gmstrftime('%Y-%m-%d',$lnews['post_time']).'</lastmod> </url> '; } $product = @mysql_query("SELECT product_name_ascii, product_cat, id FROM cily_products"); while ($lproduct = @mysql_fetch_array ($product)){ $cat_product = @mysql_fetch_array (@mysql_query("SELECT cat_name_ascii, id FROM cily_cats WHERE id = ".$lproduct['product_cat'])); $sitemap .= ' <url> <loc>'.URL_SITE.'/sp/'.$cat_product['cat_name_ascii'].'-c'.$cat_product['id'].'/'.$lproduct['product_name_ascii'].'-p'.$lproduct['id'].'.html</loc> <changefreq>Always</changefreq> <priority>0.6</priority> <lastmod>'.gmstrftime('%Y-%m-%d',time()).'</lastmod> </url> '; } $size = strlen($sitemap); header('Content-type: text/xml; charset=UTF-8'); header("Content-Length: $size"); echo $sitemap; exit(); ?>