filterColumn = 0; $sortCriteria->ascending = true; // Find all drive in the system that are set for encryption. $eDrives = get_all_drives($user, $sortCriteria); //error_log("get_all_drives:\n". print_r( $eDrives, true ) ); foreach ($eDrives as $drive) { if($drive->encryptionMethod == 4) { $EncryptUsedCnt++; } if($drive->encryptionSupported == 1) { $EncryptCnt++; $encryptedDrives .= $drive->guid . ":"; } } error_log("There were $EncryptUsedCnt drives set to encryption found in the system."); if (isset($_GET['libGUID'])) { $libGUID = $_GET['libGUID']; error_log("==========================================================================="); $assignedDrives = get_all_drives_by_library($user, $libGUID, $sortCriteria,(int)0,(int)MEDIA_TYPE_ANY); //error_log("get_all_drives_by_library returned:\n". print_r( $assignedDrives, true ) ); $driveCnt = sizeof($assignedDrives); $libname = $assignedDrives[0]->name; error_log("The current Library name is ". $libname); // TODO: do we need to get by media type? // For now passing in LTO_1 (1) as the media type will get all drives // that support LTO1 drives. $unassignedDrives = get_available_drives_by_type($user, $sortCriteria, (int)MEDIA_TYPE_ANY); //error_log("get_available_drives_by_type returned:\n". print_r( $unassignedDrives, true ) ); $drives = array_merge($assignedDrives, $unassignedDrives); //error_log("All drives merged together are:\n". print_r( $drives, true ) ); //error_log("==========================================================================="); } ?> Drive Report List encryptionMethod == 4) { $encryptionEnabled = 1; //$EncryptUsedCnt++; $vendor = $drive->vendor; // Save the paritions current vendor for the check later. } if($drive->encryptionSupported == 1) { error_log("+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ". $drive->location . "= \n". print_r($drive,true) ); //$EncryptCnt++; //$encryptedDrives .= $drive->guid . ":"; } } $idx - 0; foreach ($drives as $drive) { // only check the assigned drives $checked = $drive->libGuid == $libGUID ? "checked" : ""; if ($checked) { $checkedDrives .= $drive->guid . ":"; } $disabled = ""; if ($drive->controlPath == 1) { $disabled = "disabled"; } if( $encryptionEnabled ) if( !$drive->encryptionSupported || $drive->vendor != $vendor ) { $disabled = "disabled"; //$drive->vendor //$drive->interfaceType //$drive->encryptionSupported } ?>