2016-07-25 16:40:22 +02:00

24 lines
720 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 &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_bbb.php');
if (Tools::getValue('token') != sha1(_COOKIE_KEY_.'exportCriteo'))
die(Tools::displayError('The token is invalid, please check the export url in your module configuration.'));
header('Content-type: text/xml');
$file = file_get_contents(dirname(__FILE__).'/../criteo_sales.fr.xml');
echo $file;
?>