38 lines
1.3 KiB
PHP
38 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to a commercial license.
|
|
* Use, copy, modification or distribution of this source file without written
|
|
* license agreement is strictly forbidden.
|
|
* In order to obtain a license, please contact us: simon@daig.re
|
|
* ...........................................................................
|
|
* INFORMATION SUR LA LICENCE D'UTILISATION
|
|
*
|
|
* L'utilisation de ce fichier source est soumise a une licence commerciale.
|
|
* Toute utilisation, reproduction, modification ou distribution du present
|
|
* fichier source sans contrat de licence ecrit est expressement interdite.
|
|
* Pour obtenir une licence, veuillez nous contacter a l'adresse: simon@daig.re
|
|
*
|
|
* @package La Poste Courrier suivi Tracking
|
|
* @author Agencya
|
|
* @copyright Copyright(c) 2015-2018
|
|
* @license See Readme.md
|
|
* Contact by Email : simon@daig.re
|
|
*/
|
|
|
|
include(dirname(__FILE__).'/../../config/config.inc.php');
|
|
include(dirname(__FILE__).'/csuivitracking.php');
|
|
|
|
if (Tools::substr(Tools::encrypt('csuivitracking/index'), 0, 10) != Tools::getValue('token') || !Module::isInstalled('csuivitracking')) {
|
|
die('Bad token');
|
|
}
|
|
|
|
$id_shop = (int)Tools::getValue('id_shop');
|
|
if (!Validate::isUnsignedId($id_shop)) {
|
|
$id_shop = null;
|
|
}
|
|
|
|
CsuiviTracking_Tools::updateOrdersStatus($id_shop);
|
|
exit;
|