include_once('user_inc.htm');
$i_columnSize = array( 14, 9, 8, 7, 8, 13, 8, 10, 7, 16 ); // Note: This is duped in driveSetupList.htm (They must match)
// Handle the apply Key
if( $_SERVER[REQUEST_METHOD] == "POST" )
{
$operationInProgress = true;
$status = new ReturnStatus();
// changed values
$SCSI = $_POST['SCSI'];
$Fibre = $_POST['Fibre'];
$numSCSI = $_POST['numSCSI'];
$numFibre = $_POST['numFibre'];
if( (int)$numSCSI > 0 )
{
foreach(explode(":", $SCSI) as $drive)
{
$param = explode(",",$drive);
set_scsi_id($user,$param[0],(int)$param[1]);
}
}
if( (int)$numFibre > 0 )
{
error_log(" Fibre = ". $Fibre );
foreach(explode(":",$Fibre) as $drive)
{
$param = explode(",",$drive);
error_log("set_fc_id( user,". $param[0] .",". (int)$param[1] .",". (int)$param[2] .",". (int)$param[3]. ");");
set_fc_id($user,$param[0],(int)$param[1], (int)$param[2], (int)$param[3]);
}
}
print $status->out();
return;
}
$drives = get_all_drives($user, $sortCriteria);
error_log( "driveSetup:: drives:\n" . print_r($drives, true) );
$_SESSION['drives'] = $drives;
// See if we have ONLY SAS Drives - if so change the default No Drives message.
error_log("* * * * * * Looking for SAS only Drives");
$changeMsg = true;
foreach( $drives as $drive )
{
if( $drive->interfaceType != "SAS" )
{
error_log("The Drive Interface was: ". $drive->interfaceType);
$changeMsg = false;
break;
}
}
?>
Setup Drive
Modify - Drive
No drives available.
// Determin if there is SCSI and Fibre, or just one type.
$numScsi = 0;
$numFibre = 0;
foreach($drives as $drive)
{
if( $drive->interfaceType == "Fibre" )
$numFibre++;
if( $drive->interfaceType == "SCSI" )
$numScsi++;
}
// Change the text at the top of the screen to match which lists are being showed.
if( $numScsi > 0 && $numFibre > 0 ) // Both types
echo "";
else if ( $numScsi > 0 ) // SCSI only
echo "";
else if ( $numFibre > 0 ) // Fibre only
echo "";
// If any fibre display the extra Note:
if ( $numFibre > 0 )
echo "";
include('progressWin_inc.htm');
?>