Serveur preprod f0c0c48223 first push
2016-04-14 16:14:31 +02:00

23 lines
669 B
PHP
Executable File

<?php
/**
* Module Criteo Tag et Flux Web In Color
*
* @author Web In Color - addons@webincolor.fr
* @uses Prestashop modules
* @package criteo
* @copyright Copyright &copy; 2014, Web In Color
* @license http://www.webincolor.fr
*/
include_once(dirname(__FILE__).'/../../../config/config.inc.php');
include_once(dirname(__FILE__).'/../../../init.php');
include_once(dirname(__FILE__).'/../criteo.php');
$criteo = new Criteo();
if (Tools::getValue('token') != sha1(_COOKIE_KEY_.'exportCriteo'))
die(Tools::displayError('The token is invalid, please check the export url in your module configuration.'));
$criteo->buildCSV(Tools::getValue('id_shop'));
?>