15 lines
558 B
PHP
15 lines
558 B
PHP
<?php
|
|
include dirname(__FILE__).'/../../config/config.inc.php';
|
|
include dirname(__FILE__).'/../../init.php';
|
|
|
|
|
|
if(Tools::getValue('token') === Tools::getAdminToken('AdminLogistics'.(int) Tab::getIdFromClassName('AdminLogistics').(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=AdminLogistics&token='.Tools::getValue('token'));
|
|
}
|