<?include '../config.php';include '../m/M_SQL.php';include '../m/M_Model.php';include '../m/M_Phones.php'; $all_kodes = M_Phones::all_kodes_url();header("Content-Type: text/xml"); $site_mame = "https://zvonok24.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_kodes as $code){	$string = $code['kod'];	$string = str_replace (" ", "-", $string);	$string = str_replace ("5зн.", "-", $string);	$string = str_replace ("4зн.", "-", $string);	$string = str_replace ("зн.", "-", $string);	$string = str_replace ("N3", "", $string);	$string = str_replace (",", "--", $string);	$string = str_replace ("-4зн.", "", $string);	$string = str_replace ("--", "---", $string);	$string = str_replace ("---", "-", $string);	$string = str_replace ("NАТС+1", "", $string);	$string = str_replace ("--", "-", $string);	$string = str_replace ("+1", "", $string);						echo "<url><loc>{$site_mame}/telefonnyy-kod/$string</loc></url>";	 } echo "</urlset>"; ?>