", ">", $str); $str = str_replace("'", "'", $str); $str = str_replace("\"", """, $str); $str = str_replace("\r", "", $str); $str = str_replace(" ", "%20", $str); // use only on URLs otherwise comment out $str = strtr($str,$asc2uni); return $str; } header("Content-Type: application/xml"); print' '; @$fp=fopen("pages.txt","r"); if ($fp){ while(!feof($fp)){ $loc = trim(fgets($fp,2048)); if(feof($fp) && $count<1){$pri="";} else {$pri="".number_format(intval(max(10-$count,5))/10,1)."";} $count++; $mod1=""; @$mod = date("Y-m-d",filemtime("..".$loc)); if ($mod!="1969-12-31"){ $mod1="$mod"; } else { $mod1="weekly"; } touch($_SERVER["SCRIPT_FILENAME"]); if($loc!="")print "http://".$_SERVER["HTTP_HOST"]."$loc$mod1$pri\n"; } } //BLOG if (file_exists("../blog/classes/dbClass.php")){ include_once("../blog/classes/dbClass.php"); $blog_db= new dbClass(); $sql="SELECT * FROM `BlogEntries` order by PostDate desc limit 10"; $blog_db->runQuery($sql); while ($line=$blog_db->nextArray()){ print"http://".$_SERVER["HTTP_HOST"]."/blog/?id=".$line['EntryID']."&showEntry=1".date("Y-m-d",strtotime($line["PostDate"]))."\n"; } } //BLOG print""; ?>