18 lines
409 B
PHP
Raw Normal View History

2016-01-04 12:49:26 +01:00
<?php
if(isset($_SERVER['REMOTE_ADDR'])) exit;
$_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');
$sales = Sale::getSales(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);
}