$_SESSION["change_import_mode"] = false; } //Changing the import mode if (isset($_GET["change_import_mode"])) { if ($_GET["change_import_mode"] == "false") { $_SESSION["change_import_mode"] = false; } else { $_SESSION["change_import_mode"] = true; } } if (isset($_SESSION["ocs_link"])) { if ($count = count($_SESSION["ocs_link"])) { $percent = min(100, round(100 * ($_SESSION["ocs_link_count"] - $count) / $_SESSION["ocs_link_count"], 0)); displayProgressBar(400, $percent); $key = array_pop($_SESSION["ocs_link"]); OcsServer::linkComputer($key["ocsid"], $_SESSION["ocsservers_id"], $key["computers_id"]); glpi_header($_SERVER['PHP_SELF']); } else { displayProgressBar(400, 100); unset($_SESSION["ocs_link"]); echo "<div class='center b'>" . $LANG['ocsng'][8] . "<br>"; echo "<a href='" . $_SERVER['PHP_SELF'] . "'>" . $LANG['buttons'][13] . "</a></div>"; } } if (!isset($_POST["import_ok"])) { if (!isset($_GET['check'])) { $_GET['check'] = 'all'; } if (!isset($_GET['start'])) { $_GET['start'] = 0; }