23 lines
669 B
PHP
Executable File
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 © 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'));
|
|
|
|
?>
|