privilegedemarque/modules/fluxcatalog/cron_flux.php
Christophe Latour 9a64d7d000 flux catalog
2016-10-13 12:32:49 +02:00

20 lines
554 B
PHP

<?php
if (isset($_SERVER['REMOTE_ADDR']))
exit();
error_reporting(E_ALL);
ini_set('display_errors', true);
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
require_once(dirname(__FILE__).'/../../config/config.inc.php');
require_once(dirname(__FILE__).'/models/Flux.php');
file_put_contents('./log/all.txt', date(DATE_RFC2822) . ' (START)'. "\n", FILE_APPEND);
$catalog_arthur = new FluxCatalog();
$catalog_arthur->generateCatalog('arthur_media');
file_put_contents('./log/all.txt', date(DATE_RFC2822) . ' (END)'. "\n", FILE_APPEND);
echo "OK\n";
return 0;
?>