along with GLPI; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -------------------------------------------------------------------------- */ // ---------------------------------------------------------------------- // Original Author of file: // Purpose of file: // ---------------------------------------------------------------------- define('GLPI_ROOT', '..'); include GLPI_ROOT . "/inc/includes.php"; commonHeader($LANG['ocsng'][0], $_SERVER['PHP_SELF'], "utils", "ocsng", "clean"); if (!isset($_POST["clean_ok"])) { checkRight("clean_ocsng", "r"); if (!isset($_GET['check'])) { $_GET['check'] = 'all'; } if (!isset($_GET['start'])) { $_GET['start'] = 0; } OcsServer::manageDeleted($_SESSION["ocsservers_id"]); OcsServer::showComputersToClean($_SESSION["ocsservers_id"], $_GET['check'], $_GET['start']); } else { checkRight("clean_ocsng", "w"); if (count($_POST['toclean']) > 0) { OcsServer::cleanLinksFromList($_SESSION["ocsservers_id"], $_POST['toclean']); echo "<div class='center b'>" . $LANG['ocsng'][3] . " - " . $LANG['log'][45] . "<br>"; displayBackLink(); echo "</div>"; } } commonFooter();