mirror of
https://github.com/psenough/pouet.net.git
synced 2025-01-17 13:18:24 +01:00
3e3a18afb2
Also don't show any error when tmp is empty, as it should be emptiable whenever we want.
31 lines
746 B
PHP
31 lines
746 B
PHP
<?php
|
|
require_once('lib/lastrss/lastRSS.php');
|
|
require_once('include/constants.php');
|
|
|
|
header("Content-type: text/plain");
|
|
|
|
printf("START %s - ",date("Y-m-d H:i:s"));
|
|
|
|
// create lastRSS object
|
|
$rss = new lastRSS;
|
|
|
|
// setup transparent cache
|
|
$rss->cache_dir = TMP_FOLDER;
|
|
$rss->cache_time = 5*60; // in seconds
|
|
$rss->CDATA = 'strip';
|
|
$rss->date_format = 'Y-m-d';
|
|
|
|
$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');
|
|
|
|
// var_dump($rss);
|
|
// var_dump($r);
|
|
|
|
printf("END %s\n",date("Y-m-d H:i:s"));
|