bebeboutik/modules/sensefuel/scripts/sensefuelcron.php
2017-12-07 11:12:46 +01:00

31 lines
755 B
PHP

<?php
$_SERVER['HTTP_HOST'] = 'www.bebeboutik.com';
$_SERVER['SERVER_NAME'] = 'www.bebeboutik.com';
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['HTTP_PORT'] = 443;
$_SERVER['HTTP_X_FORWARDED_PORT'] = 443;
$_SERVER['SERVER_PORT'] = 443;
$_SERVER['HTTPS'] = 'on';
global $protocol_content;
include __DIR__ . '/../../../config/settings.inc.php';
include __DIR__ . '/../../../config/config.inc.php';
if(!Tools::isCli()){
exit();
}
define('_PS_BASE_URL_', Tools::getShopDomain(true));
$protocol_content = Tools::getProtocol();
include __DIR__ . '/../sensefuel.php';
$module_instance = new sensefuel();
if ($module_instance->active) {
$senseFuelFluxExport = new SenseFuelFluxExport($module_instance);
$senseFuelFluxExport->writeXml();
}