toutpratique/modules/criteo/tools/export_xml.php
ToutPratique 731a03a487 push prod
2016-06-23 10:23:03 +02:00

24 lines
672 B
PHP

<?php
/**
* Module Criteo Tag et Flux Web In Color.
*
* @author Web In Color - addons@webincolor.fr
*
* @uses Prestashop modules
*
* @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.'));
}
$xml = $criteo->buildXML(Tools::getValue('id_shop'));
die($xml);