bebeboutik/modules/logistics/select_sale.php

15 lines
558 B
PHP
Raw Normal View History

2016-01-04 12:49:26 +01:00
<?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'));
}