Register Globals Fix -> Changes From Live Site

Pulled In latest code from the Live Site, since we did some emergency
hotfixing when our PHP version automatically upgraded to 5.4 which
doesn't support register globals, the site no longer requires the php
setting "register globals" to be enabled as a shiv has been put in place
for now.