Размер файла: 581B
- <?php
-
- include('./cafeRSS.php');
-
- $defaultrssfeedURL = 'http://slashdot.org/slashdot.rdf';
-
- if (!empty($HTTP_GET_VARS['rssfeedURL'])) {
- $rssfeedURL = $HTTP_GET_VARS['rssfeedURL'];
- } else {
- $rssfeedURL = $defaultrssfeedURL;
- }
-
- $rss = new cafeRSS();
- $rss->assign('items', 5);
- $rss->assign('use_cache', 1);
- $rss->assign('cache_dir', 'cafeRSS_cache');
- $rss->display($rssfeedURL);
-
- ?>
- <p>
- <form method="GET">
- Load another RSS feed:<br />
- URL: <input type="text" name="rssfeedURL" value="<?php echo $rssfeedURL ?>" /><br />
- <input type="submit" name="submit" value="OK" />
- </form>
- </p>