The rig in this tutorial is a variation of the leg setup in the Blender Documentation Volume One by Lyubomir Kovachev, I'll admit. I wrote this mostly for myself, so I wouldn't forget what I did differently.