* @copyright 2018 DPD France S.A.S. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ include(dirname(__FILE__).'/../../config/config.inc.php'); include(dirname(__FILE__).'/../../init.php'); include(dirname(__FILE__).'/controllers/admin/AdminDPDFrance.php'); class DpdfranceSyncShipmentsCron extends AdminDPDFranceController { public function __construct() { ini_set('max_execution_time', 1200); ini_set('default_socket_timeout', 5); /* Check security token */ if (Tools::encrypt('dpdfrance/cron')!=Tools::getValue('token')||!Module::isInstalled('dpdfrance')) { die('Bad token'); } $employee_id=Tools::getValue('employee'); $force=Tools::getValue('force'); AdminDPDFranceController::syncShipments($employee_id, $force); } } new DpdfranceSyncShipmentsCron();