// Обновление 30.06.2009 function GetSiteMap(){ global $keys, $urls, $way; $head=''."\n\t".''; $shab=''."\n\t".'[SITE]'."\n\t".'[DATE]'."\n\t".'monthly'."\n\t".'0.5'."\n\t".''; $bottom=' '; //$date=date("Y\-m\-d"); // @inlanger 27.06.2009 function getNormalDate($num){if ($num<10){return "0".$num;}else{return $num;}} // @inlanger 27.06.2009 $le=sizeof($keys); for ($m=0; $m<$le; $m++){ $tt=str_replace("[SITE]", $way.str_replace("&", "&", $urls[$m][1]), $shab); $date = date("Y").'-'.getNormalDate(mt_rand(1,date("m"))).'-'.getNormalDate(mt_rand(1,30)); // @inlanger 30.06.2009 $tt=str_replace("[DATE]", $date, $tt); @$itog.=$tt; } $itog=$head.$itog.$bottom; return $itog; }