spaceFree = disk_free_space($drive->location); $drive->spaceTotal = disk_total_space($drive->location); $drive->spaceUsed = getDifference( $drive->spaceTotal, $drive->spaceFree); $drive->spacePercentageUsed = getPercentageUsed( $drive->spaceTotal, $drive->spaceUsed); } return $drives; } /* display functions */ function printDrive($drive) { echo '

' . $drive->name . '

' . $drive->description . '

Free Space: ' . getByteString($drive->spaceFree) . '
Used Space: ' . getByteString($drive->spaceUsed) . '
'; } function printService($service) { echo '

' . $service->name . '

' . $service->description . '

'; } ?>