mirror of
https://github.com/psenough/pouet.net.git
synced 2025-01-16 20:58:27 +01:00
Moved lastRSS in its lib folder
This commit is contained in:
parent
dd87056454
commit
839bb21e66
9
cron.php
9
cron.php
@ -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';
|
||||
@ -24,8 +24,7 @@ $rss->itemtags[] = "demopartynet:endDate";
|
||||
|
||||
$r = $rss->get('http://feeds.feedburner.com/demoparty/parties');
|
||||
|
||||
//var_dump($rss);
|
||||
//var_dump($r);
|
||||
// var_dump($rss);
|
||||
// var_dump($r);
|
||||
|
||||
printf("END %s\n",date("Y-m-d H:i:s"));
|
||||
?>
|
||||
|
@ -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
3
lib/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Libraries
|
||||
|
||||
Let's put external libraries in this folder, one for each even for single files
|
Loading…
x
Reference in New Issue
Block a user