Removed old upgrade things.
Fixed PHP 5.2 header_remove issues.