Man badly injured in Danville fire