<?include '../config.php';include '../m/M_SQL.php';include '../m/M_Model.php';include '../m/M_Phones.php'; $all_info = M_Phones::get_all_info_from_city_for_sitemap();header("Content-Type: text/xml"); $site_mame = "https://nomerok24.ru"; echo "<?xml version='1.0' encoding='UTF-8'?><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'>";	  foreach($all_info as $code){	$mame = $code['okato'];	if($mame)		echo "<url><loc>{$site_mame}/okato/$mame</loc></url>";	 } echo "</urlset>"; ?>