ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/lnovel/code/sitemap/ |
<?php global $DB,$CORE,$INFO; $g = $CORE->input['type'] ?? ''; $where = " AND truyen_active_status='Active' AND truyen_sochuong is not NULL "; if(!empty($g)){ $where .= " AND truyen_ftheloai LIKE '%".$g."%@' "; } $order_by = ' time_update DESC '; $query = $DB->query(" SELECT truyen_id,truyen_fname,time_post FROM tb_truyen WHERE 1 ".$where." ORDER BY ".$order_by." LIMIT 0,100 "); header('Content-type: text/xml'); echo '<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="'.$INFO['home_url'].'sitemap.xsl"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'; while ($row = $DB->fetch_row($query)){ echo '<url> <loc>'.$INFO['home_url'].$row['truyen_fname'].'-'.$row['truyen_id'].'/</loc> <lastmod>'.date('Y-m-d',strtotime($row['time_post'])).'</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url>'; } echo '</urlset>'; exit(); ?>