1 <?php echo ('<?xml version="1.0" encoding="utf-8"?>'); ?>
2 <rss version="2.0" xml:base="http://www.angstrom-distribution.org/unstable/autobuild/" xmlns:dc="http://purl.org/dc/elements/1.1/">
4 <title>Ångström autobuilder updates</title>
5 <link>http://www.angstrom-distribution.org/unstable/autobuild/</link>
6 <description></description>
7 <language>en</language>
10 $base_path = "/home/angstrom/website/unstable/autobuild";
12 if ($handle = opendir("$base_path"))
14 while (false !== ($file = readdir($handle)))
16 if(!(is_dir($file) && $file != "." && $file != ".."))
21 $second_handle = opendir("$base_path/$file/");
23 while (false !== ($file2 = readdir($second_handle)))
25 if(is_file("/$base_path/$file/$file2"))
27 $fmtime = filemtime("$file/$file2");
30 echo "<title>$file/$file2 uploaded</title>\n";
31 echo " <link>http://www.angstrom-distribution.org/unstable/autobuild/$file/$file2</link>\n";
33 $rsstime = strftime("%a, %d %b %Y %T +0100", $fmtime);
35 echo "<pubDate>$rsstime</pubDate>\n";
36 echo "<dc:creator>Angstrom autobuilder</dc:creator>";
41 closedir($second_handle);