33 lines
877 B
PHP
Executable File
33 lines
877 B
PHP
Executable File
<?php
|
|
ini_set('memory_limit', '4096M');
|
|
ini_set('max_execution_time', 0);
|
|
$_SERVER['HTTP_HOST'] = 'www.bebeboutik.com';
|
|
include('www/config/config.inc.php');
|
|
|
|
//$cmd = 'php cron_export_sales_monthly_new.php 2012-05-01 2> /dev/null';
|
|
//echo exec($cmd);
|
|
|
|
// Historique:
|
|
// 22/08/2016 - ($y=2; $y < 4; $y++)
|
|
// 23/08/2016 - ($y=4; $y < 5; $y++)
|
|
// 24/08/2016 - ($y=5; $y < 6; $y++)
|
|
// 25/08/2016 - ($y=6; $y < 7; $y++)
|
|
// 17/11/2017 - ($y=7; $y < 8; $y++)
|
|
|
|
// new
|
|
for ($y=7; $y < 8; $y++) {
|
|
$year = '201'.$y;
|
|
$start = ($y==2)?4:1;
|
|
$end = ($y==7)?11:13;
|
|
for ($m=$start; $m < $end; $m++) {
|
|
if ($m == 10 || $m == 11 | $m == 12) {
|
|
$month = $m;
|
|
} else {
|
|
$month = '0'.$m;
|
|
}
|
|
//echo $year."-".$month."-01\n";
|
|
echo exec('php cron_export_sales_monthly.php '.$year.'-'.$month.'-01 2> /dev/null');
|
|
}
|
|
}
|
|
|
|
exit; |