19 lines
414 B
PHP
Executable File
19 lines
414 B
PHP
Executable File
<?php
|
|
if(isset($_SERVER['REMOTE_ADDR'])) exit;
|
|
$_SERVER['SERVER_PORT'] = 80;
|
|
$_SERVER['HTTP_HOST'] = 'www.bebeboutik.com';
|
|
|
|
include(dirname(__FILE__).'/../../config/config.inc.php');
|
|
include(dirname(__FILE__).'/Sale.php');
|
|
$sales = Sale::getSalesBack(TRUE, NULL, NULL, FALSE);
|
|
|
|
$file = fopen('lastupdate.txt', 'w');
|
|
fwrite($file, date('Ymd His'));
|
|
fclose($file);
|
|
|
|
foreach($sales as $sale) {
|
|
$sale->end(TRUE);
|
|
}
|
|
|
|
|