Ocsinventoryng plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ocsinventoryng. If not, see <http://www.gnu.org/licenses/>. ----------------------------------------------------------------------*/ include '../../../inc/includes.php'; Html::header('OCS Inventory NG', "", "plugins", "ocsinventoryng", "clean"); if (!isset($_POST["clean_ok"])) { plugin_ocsinventoryng_checkRight("clean_ocsng", "r"); if (!isset($_GET['check'])) { $_GET['check'] = 'all'; } if (!isset($_GET['start'])) { $_GET['start'] = 0; } PluginOcsinventoryngOcsServer::manageDeleted($_SESSION["plugin_ocsinventoryng_ocsservers_id"]); PluginOcsinventoryngOcsServer::showComputersToClean($_SESSION["plugin_ocsinventoryng_ocsservers_id"], $_GET['check'], $_GET['start']); } else { plugin_ocsinventoryng_checkRight("clean_ocsng", "w"); if (count($_POST['toclean']) > 0) { PluginOcsinventoryngOcsServer::cleanLinksFromList($_SESSION["plugin_ocsinventoryng_ocsservers_id"], $_POST['toclean']); echo "<div class='center b'>" . __('Clean links between GLPI and OCSNG', 'ocsinventoryng') . "<br>" . __('Operation successful') . "<br>"; Html::displayBackLink(); echo "</div>"; } } Html::footer();