2013-05-12 16:20:55 -04:00
|
|
|
<?php
|
|
|
|
require_once('lib/lastrss/lastRSS.php');
|
|
|
|
require_once('include/constants.php');
|
|
|
|
|
2013-05-07 14:20:08 -04:00
|
|
|
header("Content-type: text/plain");
|
|
|
|
|
|
|
|
printf("START %s - ",date("Y-m-d H:i:s"));
|
|
|
|
|
|
|
|
// create lastRSS object
|
2013-05-08 23:12:00 -04:00
|
|
|
$rss = new lastRSS;
|
2013-05-07 14:20:08 -04:00
|
|
|
|
|
|
|
// setup transparent cache
|
2013-05-12 16:20:55 -04:00
|
|
|
$rss->cache_dir = TMP_FOLDER;
|
2013-05-07 14:20:08 -04:00
|
|
|
$rss->cache_time = 5*60; // in seconds
|
2013-05-08 23:12:00 -04:00
|
|
|
$rss->CDATA = 'strip';
|
|
|
|
$rss->date_format = 'Y-m-d';
|
2013-05-07 14:20:08 -04:00
|
|
|
|
|
|
|
$rss->get('http://bitfellas.org/e107_plugins/rss_menu/rss.php?1.2');
|
|
|
|
|
|
|
|
$rss->itemtags[] = "demopartynet:title";
|
|
|
|
$rss->itemtags[] = "demopartynet:date";
|
|
|
|
$rss->itemtags[] = "demopartynet:startDate";
|
|
|
|
$rss->itemtags[] = "demopartynet:endDate";
|
|
|
|
|
|
|
|
$r = $rss->get('http://feeds.feedburner.com/demoparty/parties');
|
|
|
|
|
2013-05-12 16:02:29 -04:00
|
|
|
// var_dump($rss);
|
|
|
|
// var_dump($r);
|
2013-05-07 14:20:08 -04:00
|
|
|
|
|
|
|
printf("END %s\n",date("Y-m-d H:i:s"));
|