2 header('Content-type: text/html');
4 require_once('../h/agg.php'); // my rss to xml aggregator
6 print "<h2>Loading Config...</h2>\n";
8 // the config file for planet and miniplanet
9 $xml = simplexml_load_file('config/planet.xml');
11 print "<div><b>Error</b> loading config/planet.xml</div>";
17 foreach ($xml->feed as $f) {
19 $feeds[] = array( 'url' => (string)$f->planet->rss,
20 'name' => (string)$f->name,
21 'image' => (string)$f->image,
22 'nick' => (string)$f->nick);
27 $fh = fopen($tmp, 'w');
28 print "<h2>Reading Planet Openbox Feeds...</h2>\n";
31 'http://icculus.org/openbox/discuss-planet.shtml',
32 'Blog entries from around the Openbox planet',
34 if (fwrite($fh, $data))
37 print "<div><b>Error</b> writing $out</div>";
41 foreach ($xml->feed as $f) {
43 $feeds[] = array( 'url' => (string)$f->mini->rss,
44 'name' => (string)$f->name,
45 'image' => (string)$f->image,
46 'nick' => (string)$f->nick);
51 $fh = fopen($tmp, 'w');
52 print "<h2>Reading Mini Planet Openbox Feeds...</h2>\n";
54 'Mini Planet Openbox',
55 'http://icculus.org/openbox/discuss-miniplanet.shtml',
56 'Tweets and dents from around the Openbox planet',
58 if (fwrite($fh, $data))
61 print "<div><b>Error</b> writing $out</div>";
64 array( 'url' => 'http://cia.vc/stats/project/Openbox/.rss',
66 array( 'url' => 'http://cia.vc/stats/project/Obconf/.rss',
69 $out = 'local/.xml.commits';
71 $fh = fopen($tmp, 'w');
72 print "<h2>Reading Openbox Commits Feeds...</h2>\n";
75 'http://icculus.org/openbox/develop.shtml',
76 'Commit log for Openbox and ObConf',
78 if (fwrite($fh, $data))
81 print "<div><b>Error</b> writing $out</div>";
84 // take this out one day when we replace the old site
87 $fh = fopen($tmp, 'w');
88 print "<h2>Reading Openbox News Feed...</h2>\n";
89 $data = agg_single('http://icculus.org/openbox/rss.xml',
91 if (fwrite($fh, $data))
94 print "<div><b>Error</b> writing $out</div>";
96 print "<h2>Done.</h2>\n";