WvDBusMsg::is_reply() had an unnecessary hack for message #1.
[wvapps.git] / planit / magpie_simple.php
blob37d5c067aa59ca51bda02a9a1f6fa17e797d56c4
1 <?php
3 define('MAGPIE_DIR', './');
4 require_once(MAGPIE_DIR.'rss_fetch.inc');
6 $url = $_GET['url'];
8 if ( $url ) {
9 $rss = fetch_rss( $url );
11 echo "Channel: " . $rss->channel['title'] . "<p>";
12 echo "<ul>";
13 foreach ($rss->items as $item) {
14 $href = $item['link'];
15 $title = $item['title'];
16 echo "<li><a href=$href>$title</a></li>";
18 echo "</ul>";
22 <form>
23 RSS URL: <input type="text" size="30" name="url" value="<?php echo $url ?>"><br />
24 <input type="submit" value="Parse RSS">
25 </form>