* @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');