// [Fibre] => 0x1.115b60db.1d044f6f,3,4,0:0x1.115b60db.3e3f779d,4,4,0 // [numSCSI] => 0 // [numFibre] => 2 // [Fibre] => 0x1.115b60db.1d044f6f,10,4,0 :0x1.115b60db.3e3f779d,11,4,0: ,12,4,0 // changed values $SCSI = $_POST['SCSI']; $Fibre = $_POST['Fibre']; $SAS = $_POST['SAS']; $numSCSI = $_POST['numSCSI']; $numFibre = $_POST['numFibre']; $numSAS = $_POST['numSAS']; 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_ids( user,". $param[0] .",". (int)$param[1] .",". (int)$param[2] .",". (int)$param[3].");"); set_fc_ids($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 Drives