include_once('user_inc.htm'); if ($_SERVER[REQUEST_METHOD] == "POST") { error_log("_POST = ". print_r($_POST, true) ); error_log("driveClean.htm POST"); $libraryGUID = $_POST['libraryGUID']; $mediaTypeCode = $_POST['mediaTypeCode']; $sourceGUID = $_POST['sourceGUID']; $destGUID = $_POST['destGUID']; // Required to support the operation in progress dialog. $operationInProgress = true; $status = new ReturnStatus(); // make sure th tape in the IE slot belongs to the system. //get_mailbox $sortCriteria->ascending = false; $sortCriteria->sortColumn = 's_location'; // pcr 23033 clean_drive_manually now validates the top I/E station // Now clean the drives. foreach (explode(":", $destGUID) as $theGUID) { if( $sourceGUID == "CC" ) clean_drive($user,$libraryGUID,$theGUID); else // Do the OLD way with the TOP IE Slot by default. clean_drive_manually($user,$libraryGUID,$theGUID); } print $status->out_complete(); return; } else { $cleaning_configured = get_num_cleaning_slots($user); $cleanSlots = get_cleaning_slots($user, $sortCriteria, 2); // Get the FULL mail box slots error_log("Cleaning Slots = ". print_r($cleanSlots, true) ); // Get the number of logical libraies so we know if we need to bring up the partition Slect page or not. $libs = get_logical_libraries_brief($user); $lib_count = count($libs); } ?>