isAdmin()) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } /* Check if the form data comes from a trusted request */ if(!checkFormKey('removedump')) { UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token")); } if (!isset($_POST["dumpname"]) || !file_exists(addDirSep($settings->_backupDir).$_POST["dumpname"]) ) { UI::exitError(getMLText("admin_tools"),getMLText("unknown_id")); } if (!SeedDMS_Core_File::removeFile($settings->_backupDir.$_POST["dumpname"])) { UI::exitError(getMLText("admin_tools"),getMLText("error_occured")); } add_log_line("?dumpname=".$_POST["dumpname"]); header("Location:../out/out.BackupTools.php"); ?>