\n";
$datestring = $file;
$datestring = str_replace(".", "-", $datestring);
$datetime = strtotime($datestring);
$datestring = date(DATE_RSS, $datetime);
echo " $datestring\n";
$data = file_get_contents($dirname . "/$file"); //read the file
$convert = explode("\n", $data); //create array separate by new line
for ($i=0;$i";
if ($i != 0) {
$linestring = strip_tags($convert[$i]);
$linestring = str_replace("<", "<", $linestring);
$linestring = str_replace(">", ">", $linestring);
echo $linestring. "
\n"; //write value by index
}
else {
$title = $title . strip_tags($convert[$i]) . "\n";
echo $title;
echo " ';
// }
}
echo " ]]>\n";
// if (count($convert) > $newscollapsedlines) {
echo " http://www.trinitydesktop.org/newsentry.php?entry=" . $file . "\n";
echo " http://www.trinitydesktop.org/newsentry.php?entry=" . $file . "\n";
// }
echo " \n";
}
}
closedir($handle);
}
}
header('Content-type: application/rss+xml');
/*echo "\n";*/
echo "\n";
echo "\n";
echo " \n";
echo " \n";
echo " Trinity Desktop Environment News\n";
echo " http://www.trinitydesktop.org/\n";
echo " News of the Trinity Desktop Environment, a full-featured professional desktop for Linux.\n";
echo " en\n";
processDir('news', 'newsentry.php');
processDir('rssentries', 'rssentry.php');
echo " \n";
echo "\n";
?>