<?php
include_once("./_common.php");
include_once(G5_PATH."/sh_category.php");

$sql_len4 = " select * {$sql_common_len} where LENGTH(ca_id) = '4' {$sql_order_len} ";
$result_len4 = sql_query($sql_len4);
	
$published    = date('Y-m-d\TH:i:s\+09:00', G5_SERVER_TIME);
$updated      = $published;
$link_href    = G5_URL;

Header("Content-type: text/xml");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
echo "<urlset  xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n";

for ($i_len4=1; $row_len4=sql_fetch_array($result_len4); $i_len4++) {
	$row_len4['ca_link'] = str_replace('&', '&amp;', trim($row_len4['ca_link']));
	$row_len4['ca_link'] = str_replace('<', '&lt;', trim($row_len4['ca_link']));
	$row_len4['ca_link'] = str_replace('>', '&gt;', trim($row_len4['ca_link']));
	echo "<url>";
	echo "<loc>{$link_href}{$row_len4['ca_link']}</loc>";
	echo "<lastmod>{$updated}</lastmod>";
	echo "<changefreq>monthly</changefreq>";
	echo "<priority>0.8</priority>";
	echo "</url>";
}
echo "</urlset>";
?>