* @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include dirname(__FILE__).'/../../config/config.inc.php'; if (Tools::getValue('token') != Tools::encrypt(Configuration::get('PS_SHOP_NAME'))) { die('Error: Invalid Token'); } if (Tools::getValue('proc_success') != '') { $file_name = Configuration::get('Sendin_CSV_File_Name'); $handle = fopen(_PS_MODULE_DIR_.'sendinblue/csv/'.$file_name.'.csv', 'w'); Configuration::updateValue('Sendin_CSV_File_Name', '', ''); fclose($handle); } echo 'done'; exit;