Add in updates paths for old versions
Add in magic quotes check

Falls back to use JRequest if magic quotes is turned on for Joomla 2.5