19 lines
414 B
PHP
Raw Normal View History

2016-01-04 12:49:26 +01:00
<?php
2016-08-25 15:20:38 +02:00
if(isset($_SERVER['REMOTE_ADDR'])) exit;
2016-01-04 12:49:26 +01:00
$_SERVER['SERVER_PORT'] = 80;
2016-02-24 16:23:27 +01:00
$_SERVER['HTTP_HOST'] = 'www.bebeboutik.com';
2016-01-04 12:49:26 +01:00
include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/Sale.php');
2017-10-30 15:11:20 +01:00
$sales = Sale::getSalesBack(TRUE, NULL, NULL, FALSE);
2016-02-24 16:23:27 +01:00
$file = fopen('lastupdate.txt', 'w');
fwrite($file, date('Ymd His'));
fclose($file);
2016-01-04 12:49:26 +01:00
foreach($sales as $sale) {
$sale->end(TRUE);
}
2016-08-25 15:20:38 +02:00