24 lines
672 B
PHP
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 © 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);
|