bebeboutik/modules/bulkupdate/cron.php
2017-06-19 17:04:16 +02:00

13 lines
330 B
PHP

<?php
if(isset($_SERVER['REMOTE_ADDR'])) exit;
$_SERVER['SERVER_PORT'] = 80;
$_SERVER['HTTP_HOST'] = 'www.bebeboutik.com';
include(dirname(__FILE__).'/../../config/config.inc.php');
foreach(glob(dirname(__FILE__).'/*.csv') as $filename) {
if($filename == 'base_produit.csv'){
continue;
}
unlink($filename);
}