1 <? print('<?xml version="1.0" encoding="utf-8"?>');?>
2 <rss version="2.0" xml:base="http://www.anstrom-distribution.org/unstable/autobuild/" xmlns:dc="http://purl.org/dc/elements/1.1/">
4 <title>Ã…ngstrom autobuilder updates </title>
5 <link>http://www.anstrom-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))) {
15 if(is_dir($file) && $file != "." && $file != "..") {
16 $second_handle = opendir("$base_path/$file/");
17 while (false !== ($file2 = readdir($second_handle))) {
18 if(is_file("/$base_path/$file/$file2")) {
19 $fmtime = filemtime("$file/$file2");
22 print("<title>$file/$file2 uploaded</title>\n");
23 print(" <link>http://www.anstrom-distribution.org/unstable/autobuild/$file/$file2</link>\n");
25 $rsstime = strftime("%a, %d %b %Y %T +0000", $fmtime);
27 print("<pubDate>$rsstime</pubDate>\n");
28 print("<dc:creator>Angstrom autobuilder</dc:creator>");
33 closedir($second_handle);