Fixing security bug with "../" more universally.
Fixing a few BC breaks with the deprecated headers.
Removing the ini_set for no memory limit and decreasing the max execution time to 5 minutes.