. * * ------------------------------------------------------------------------ * * This file is used to manage the task timeslot entries form. * * ------------------------------------------------------------------------ * * @package FusionInventory * @author David Durieux * @copyright Copyright (c) 2010-2016 FusionInventory team * @license AGPL License 3.0 or (at your option) any later version * http://www.gnu.org/licenses/agpl-3.0-standalone.html * @link http://www.fusioninventory.org/ * @link https://github.com/fusioninventory/fusioninventory-for-glpi * */ include ("../../../inc/includes.php"); Session::checkRight('plugin_fusioninventory_task', READ); if (!isset($_GET["id"])) { $_GET["id"] = ""; } $pfTimeslotEntry = new PluginFusioninventoryTimeslotEntry(); foreach ($_POST as $key=>$value) { if (strstr($key, 'purge-')) { $split = explode('-', $key); $_POST['id'] = $split[1]; $pfTimeslotEntry->check($_POST['id'], PURGE); $pfTimeslotEntry->delete($_POST, 1); Html::back(); } } $pfTimeslotEntry = new PluginFusioninventoryTimeslotEntry(); $pfTimeslotEntry->addEntry($_POST); Html::back();