15 lines
549 B
PHP
15 lines
549 B
PHP
|
<?php
|
||
|
include dirname(__FILE__).'/../../config/config.inc.php';
|
||
|
include dirname(__FILE__).'/../../init.php';
|
||
|
|
||
|
|
||
|
if(Tools::getValue('token') === Tools::getAdminToken('AdminLaPosteWS'.(int) Tab::getIdFromClassName('AdminLaPosteWS').(int) Tools::getValue('id_employee'))) {
|
||
|
if($sales = Tools::getValue('filter_id_sale')) {
|
||
|
setcookie('lpws_sales', implode('-', $sales), 0, __PS_BASE_URI__);
|
||
|
} else {
|
||
|
setcookie('lpws_sales', '', 0, __PS_BASE_URI__);
|
||
|
}
|
||
|
|
||
|
Tools::redirectAdmin('/adm/index.php?tab=AdminLaPosteWS&token='.Tools::getValue('token'));
|
||
|
}
|