<?
header("Content-type: text/xml");
include($_SERVER['DOCUMENT_ROOT']."/include/global_xml.php");
if($main_site=='mediaecon' || $main_site=='generaltimes'){
	$https	= "https";
}else{
	$https	= "http";
}

echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
<?
//ÃÖ±Ù 7ÁÖÀÏÀÌ³» ±â»ç
$sql	= "select * from board_3 where bEtcChar1='Y' and bEtcVarchar1>='".date("Y-m-d H:i:s",mktime(0, 0, 0, date("m")  , date("d")-15, date("Y")))."'";
$qry	= mysql_query($sql,$connection);
while($fet	= mysql_fetch_assoc($qry)){?>
<url>
<loc><?=$https?>://<?=$_SERVER['SERVER_NAME']?>/news/view.php?bIdx=<?=$fet['bIdx']?></loc>
<news:news>
	<news:publication>
		<news:name><?=$site_Info['site_title']?></news:name>
		<news:language>ko</news:language>
	</news:publication>
	<news:genres>PressRelease</news:genres>
	<news:publication_date><?=date('Y-m-d\TH:i:sP', strtotime($fet['bEtcVarchar1']))?></news:publication_date>
	<news:title><![CDATA['<?=strip_tags($fet['bTitle'])?>']]></news:title>
	<news:keywords><![CDATA['<?=str_replace(array("'",'"'),"",str_replace(array(", "," "),",",strip_tags($fet['bTitle'])))?>']]></news:keywords>
</news:news>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<?}?>
</urlset>