\n"; $out.="\n"; $out.="\n"; $out.="\n"; $out.="".$set['title']."\n"; $out.="".$set['description']."\n"; $out.="http://".sv(SERVER_NAME).sv(PHP_SELF)."\n"; $aa=explode("||",trim(file_get_contents("../data/news.dat"))); //read all news or only news=$categ, if set foreach($aa as $caca) { $aaa=explode("|",trim($caca)); if($aaa[3] !="") { $out.="\n".sanitize(stripslashes(decode($aaa[3])))."\n"; $descr=str_replace("&","&",substr(strip_tags(stripslashes(decode($aaa[4]))),0,120)); $out.="".$descr."...\n\n"; $out.=""."http://".sv(SERVER_NAME).$pathtonews."id=".$aaa[0]."\n"; $out.=""."http://".sv(SERVER_NAME).$pathtonews."id=".$aaa[0]."\n"; $out.="\n"; } } $out.="\n\n"; print $out; ?>