Commit 727ab98a authored by Ayolo's avatar Ayolo

pas de planet pour les mauviettes

parent 7398fc32
......@@ -19,19 +19,6 @@ require_once($topdir. "include/lib/magpierss/rss_fetch.inc.php");
$site = new site ();
// Tâche 1 [planet] : mettre à jour le cache
if(is_dir(MAGPIE_CACHE_DIR))
{
$req = new requete($site->db,"SELECT `url` FROM `planet_flux` WHERE `modere`='1'");
while ( list($url) = $req->get_row() )
$rs=fetch_rss($url);
// Tâche 1 [planet] : nettoyage du cache
$cache = opendir(MAGPIE_CACHE_DIR);
while ($file = readdir($cache))
if ( is_file(MAGPIE_CACHE_DIR.$file) && filemtime(MAGPIE_CACHE_DIR.$file) < (time()-MAGPIE_CACHE_AGE) )
unlink(MAGPIE_CACHE_DIR.$file);
closedir($cache);
}
// Tâche 2 [galaxy] : màj, et cycles
......
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