bebeboutik/modules/privatesales/cron.php
Srv Bebeboutik 0918b1e26d push prod
2016-02-24 16:23:27 +01:00

18 lines
409 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::getSales(TRUE, NULL, NULL, FALSE);
$file = fopen('lastupdate.txt', 'w');
fwrite($file, date('Ymd His'));
fclose($file);
foreach($sales as $sale) {
$sale->end(TRUE);
}