he should call the shelter and tell them what's going on - that poor dog - the shelters are susposed to treat the animals they have BEFORE releasing them -
he needs to find a vet if it's this bad or call the ASPCA and see if he can go to a reduced fee facility. Worms ARE treatable and this needs to be taken care of right away -
man - they give ME the willies - I can't imagine what the dog feels like
good luck !!