Moved lastRSS in its lib folder

This commit is contained in:
Laurent Raufaste 2013-05-12 16:02:29 -04:00
parent dd87056454
commit 839bb21e66
4 changed files with 8 additions and 7 deletions

View File

@ -4,13 +4,13 @@ header("Content-type: text/plain");
printf("START %s - ",date("Y-m-d H:i:s"));
include('/home/hosted/pouet/sites/www.pouet.net/lastRSS.php');
require_once('lib/lastrss/lastRSS.php');
// create lastRSS object
$rss = new lastRSS;
// setup transparent cache
$rss->cache_dir = '/home/hosted/pouet/sites/www.pouet.net/cache';
$rss->cache_dir = 'cache';
$rss->cache_time = 5*60; // in seconds
$rss->CDATA = 'strip';
$rss->date_format = 'Y-m-d';
@ -28,4 +28,3 @@ $r = $rss->get('http://feeds.feedburner.com/demoparty/parties');
// var_dump($r);
printf("END %s\n",date("Y-m-d H:i:s"));
?>

View File

@ -2,6 +2,7 @@
require("include/top.php");
require("include/libbb.php");
require("include/awardscategories.inc.php");
require_once('lib/lastrss/lastRSS.php');
if ($user["indexoneliner"]>0)
{
@ -9,8 +10,6 @@ if ($user["indexoneliner"]>0)
$onelines = array_slice($onelines, 0, $user["indexoneliner"]);
}
include './lastRSS.php';
// create lastRSS object
$rss = new lastRSS;

3
lib/README.md Normal file
View File

@ -0,0 +1,3 @@
# Libraries
Let's put external libraries in this folder, one for each even for single files