} unset($_SESSION["ocs_update"]); $display_list = false; echo "<div class='center b'><br>"; echo "<a href='" . $_SERVER['PHP_SELF'] . "'>" . __('Back') . "</a></div>"; } } if (!isset($_POST["update_ok"])) { if (!isset($_GET['check'])) { $_GET['check'] = 'all'; } if (!isset($_GET['start'])) { $_GET['start'] = 0; } PluginOcsinventoryngOcsServer::manageDeleted($_SESSION["plugin_ocsinventoryng_ocsservers_id"]); if ($display_list) { PluginOcsinventoryngOcsServer::showComputersToUpdate($_SESSION["plugin_ocsinventoryng_ocsservers_id"], $_GET['check'], $_GET['start']); } } else { if (count($_POST['toupdate']) > 0) { $_SESSION["ocs_update_count"] = 0; foreach ($_POST['toupdate'] as $key => $val) { if ($val == "on") { $_SESSION["ocs_update"]['computers'][] = $key; $_SESSION["ocs_update_count"]++; } } } Html::redirect($_SERVER['PHP_SELF']); } Html::footer();