add cron to clean csv
This commit is contained in:
parent
15ccb40b9e
commit
12314f4f95
10
modules/privatesales_logistique/cron.php
Normal file
10
modules/privatesales_logistique/cron.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?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) {
|
||||
unlink($filename);
|
||||
}
|
Loading…
Reference in New Issue
Block a user