23 lines
651 B
PHP
23 lines
651 B
PHP
<?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_bbb.php');
|
|
|
|
$criteo = new Criteo_bbb();
|
|
|
|
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();
|
|
|
|
?>
|