include('user_inc.htm'); include('driveBrick_inc.htm'); define('dirLocation',"/home/embedded/library/UDS/autolevel/"); $numPages = ceil($numRows / ITEMS_PER_PAGE); $lowPageList = 1; $highPageList = min($numRows, ITEMS_PER_PAGE); $drives=array(); // read in the list of brick image files in file system if( file_exists(dirLocation) ) { if( $handle = opendir(dirLocation) ) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { // parse the file name and present the information $attr=spliti('[_.]',$file); $vendor=strtoupper($attr[0]); $fullPath = dirLocation . $file; error_log( "Calling get_brick_image_info with ". $fullPath ); $image_info = get_brick_image_info($user,$fullPath); error_log("image_info = ". print_r($image_info, true)); // build list of brick firmware image files $drive=array('name' => $file, 'vendor' => $attr[0], 'driveType' => $typeMap[$attr[1]], 'interfaceType' => $ifMap[$attr[2]], 'revision' => $image_info->revision); $drives[]= $drive; } } closedir($handle); } } ?>