Files
bio-concept-pharma/web/modules/glstrackingnumber/cron.php
2019-11-17 19:14:07 +01:00

44 lines
1.3 KiB
PHP

<?php
/**
* 2008-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* Read in the module
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author Mediacom87 <support@mediacom87.net>
* @copyright 2008-2015 Mediacom87
* @license define in the module
* @version 1.3.8
*/
if (!defined('_PS_ADMIN_DIR_')) {
define('_PS_ADMIN_DIR_', getcwd());
}
if (!defined('PS_ADMIN_DIR')) {
define('PS_ADMIN_DIR', _PS_ADMIN_DIR_);
}
include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/glstrackingnumber.php');
$module = Module::getInstanceByName('glstrackingnumber');
if (Validate::isLoadedObject($module) && $module->active) {
if (Tools::getIsset('secure_key')) {
$secure_key = Configuration::get('GLSSTRACKING_SECURE_KEY');
if (!empty($secure_key) && $secure_key === Tools::getValue('secure_key')) {
$module = new glstrackingnumber();
$module->cron();
die('Statut Update : OK');
}
die('Wrong or empty Security Key');
}
die('Security key missing');
}
die('This module is not activated');