1<?php 2 3/* 4 ------------------------------------------------------------------------ 5 FusionInventory 6 Copyright (C) 2010-2016 by the FusionInventory Development Team. 7 8 http://www.fusioninventory.org/ http://forge.fusioninventory.org/ 9 ------------------------------------------------------------------------ 10 11 LICENSE 12 13 This file is part of FusionInventory project. 14 15 FusionInventory is free software: you can redistribute it and/or modify 16 it under the terms of the GNU Affero General Public License as published by 17 the Free Software Foundation, either version 3 of the License, or 18 (at your option) any later version. 19 20 FusionInventory is distributed in the hope that it will be useful, 21 but WITHOUT ANY WARRANTY; without even the implied warranty of 22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 GNU Affero General Public License for more details. 24 25 You should have received a copy of the GNU Affero General Public License 26 along with FusionInventory. If not, see <http://www.gnu.org/licenses/>. 27 28 ------------------------------------------------------------------------ 29 30 @package FusionInventory 31 @author David Durieux 32 @co-author 33 @copyright Copyright (c) 2010-2016 FusionInventory team 34 @license AGPL License 3.0 or (at your option) any later version 35 http://www.gnu.org/licenses/agpl-3.0-standalone.html 36 @link http://www.fusioninventory.org/ 37 @link http://forge.fusioninventory.org/projects/fusioninventory-for-glpi/ 38 @since 2010 39 40 ------------------------------------------------------------------------ 41 */ 42 43include ("../../../inc/includes.php"); 44 45Session::checkRight('printer', READ); 46Session::checkRight('plugin_fusioninventory_printer', READ); 47 48$pfPrinterLog = new PluginFusioninventoryPrinterLog(); 49print_r($_POST); 50exit; 51if ((isset($_POST['delete']))) { 52 53 Session::checkRight('plugin_fusioninventory_printer', PURGE); 54 55 if (isset($_POST['limit'])) { 56 for ($i=0 ; $i<$_POST['limit'] ; $i++) { 57 if ((isset($_POST["checked_$i"])) && ($_POST["checked_$i"] == 1)) { 58 $input = array(); 59 if (isset($_POST["ID_$i"])) { 60 $input['id'] = $_POST["ID_$i"]; 61 } 62 $pfPrinterLog->delete($input); 63 } 64 } 65 } 66} 67 68Html::back(); 69 70?> 71