You're thinking of leg press. Squats activate over a hundred muscles throughout the body. They are the best mass/strength building exercise. Leg press is okay, but it shouldn't replace squats. I suppose the best replacement for conventional squats would be a different variation of squats.

Why do you ask, just out of curiosity?