bebeboutik/modules/lapostews/select_sale.php

15 lines
549 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('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'));
}