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