bebeboutik/modules/ant_logistic/select_sale.php

15 lines
564 B
PHP
Raw Normal View History

2017-11-29 14:46:02 +01:00
<?php
include dirname(__FILE__).'/../../config/config.inc.php';
include dirname(__FILE__).'/../../init.php';
if(Tools::getValue('token') === Tools::getAdminToken('AdminAntLogistic'.(int) Tab::getIdFromClassName('AdminAntLogistic').(int) Tools::getValue('id_employee'))) {
if($sales = Tools::getValue('filter_id_sale')) {
setcookie('logistics_sales', implode('-', $sales), 0, __PS_BASE_URI__);
} else {
setcookie('logistics_sales', '', 0, __PS_BASE_URI__);
}
Tools::redirectAdmin('/adm/index.php?tab=AdminAntLogistic&token='.Tools::getValue('token'));
}