Commit 02e31294 authored by Ayolo's avatar Ayolo
Browse files

bleh

parent 1823d896
<?php <?php
$_SERVER['SCRIPT_FILENAME']="/var/www/ae/www/ae2/phpcron"; $_SERVER['SCRIPT_FILENAME']="/var/www/ae/www/ae2/phpcron";
/* /*
* hourly * hourly
*/ */
...@@ -10,7 +11,6 @@ define('MAGPIE_CACHE_AGE', 50*60); //50minutes pour etre certain d'avoir un truc ...@@ -10,7 +11,6 @@ define('MAGPIE_CACHE_AGE', 50*60); //50minutes pour etre certain d'avoir un truc
define('MAGPIE_OUTPUT_ENCODING', "UTF-8"); define('MAGPIE_OUTPUT_ENCODING', "UTF-8");
define('MAX_NUM',20); define('MAX_NUM',20);
define('MAX_SUM_LENGHT',200); define('MAX_SUM_LENGHT',200);
$_SERVER['SCRIPT_FILENAME']="/var/www/ae/www/ae2/phpcron";
require_once($topdir. "include/site.inc.php"); require_once($topdir. "include/site.inc.php");
require_once($topdir. "include/lib/magpierss/rss_fetch.inc.php"); require_once($topdir. "include/lib/magpierss/rss_fetch.inc.php");
...@@ -23,8 +23,6 @@ $req = new requete($site->db,"SELECT `url` FROM `planet_flux` WHERE `modere`='1' ...@@ -23,8 +23,6 @@ $req = new requete($site->db,"SELECT `url` FROM `planet_flux` WHERE `modere`='1'
while ( list($url) = $req->get_row() ) while ( list($url) = $req->get_row() )
$rs=fetch_rss($url); $rs=fetch_rss($url);
// Tâche 1 [planet] : nettoyage du cache // Tâche 1 [planet] : nettoyage du cache
$cache = opendir(MAGPIE_CACHE_DIR); $cache = opendir(MAGPIE_CACHE_DIR);
while ($file = readdir($cache)) while ($file = readdir($cache))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment