Index: in-auction/hitcounter.php =================================================================== --- in-auction/hitcounter.php (revision 15165) +++ in-auction/hitcounter.php (working copy) @@ -28,7 +28,8 @@ $application->HandleEvent(new kEvent('l-ebay:OnHitAuction')); $filename = MODULES_PATH . '/in-auction/admin_templates/img/s.gif'; - header('Content-type: image/gif'); + + $application->setContentType('image/gif'); header('Content-length: '.filesize($filename)); readfile($filename); $application->Done(); Index: in-auction/units/listing/listing_eh.php =================================================================== --- in-auction/units/listing/listing_eh.php (revision 15165) +++ in-auction/units/listing/listing_eh.php (working copy) @@ -1304,7 +1304,7 @@ } $ChartHelper = $this->Application->recallObject('ChartHelper'); - header("Content-type: image/png"); + $this->Application->setContentType('image/png'); $width = $this->Application->GetVar('width'); if ($width == 0) @@ -1396,7 +1396,7 @@ $ret = str_replace('',',', $ret); $ret = str_replace('',"\r", $ret); - header("Content-type: application/txt"); + $this->Application->setContentType('application/txt'); header("Content-length: ".(string)strlen($ret)); header("Content-Disposition: attachment; filename=\"".html_entity_decode('eBaySalesReport-'.date('d-M-Y').'.csv')."\""); header("Pragma: no-cache"); //some IE-fixing stuff Index: in-commerce/units/downloads/download_helper.php =================================================================== --- in-commerce/units/downloads/download_helper.php (revision 15165) +++ in-commerce/units/downloads/download_helper.php (working copy) @@ -43,7 +43,7 @@ function DoSendFile($file_info) { - header('Content-type: ' . kUtil::mimeContentType($file_info['real_path'])); + $this->Application->setContentType(kUtil::mimeContentType($file_info['real_path']), false); header('Content-Disposition: attachment; filename="' . $file_info['FilePath'] . '"'); header('Content-Length: ' . filesize($file_info['real_path'])); Index: in-commerce/units/orders/orders_event_handler.php =================================================================== --- in-commerce/units/orders/orders_event_handler.php (revision 15165) +++ in-commerce/units/orders/orders_event_handler.php (working copy) @@ -3930,7 +3930,7 @@ return; } - header('Content-type: ' . kUtil::mimeContentType($full_path)); + $this->Application->setContentType(kUtil::mimeContentType($full_path), false); header('Content-Disposition: attachment; filename="' . $file . '"'); readfile($full_path); } Index: in-commerce/units/reports/reports_event_handler.php =================================================================== --- in-commerce/units/reports/reports_event_handler.php (revision 15165) +++ in-commerce/units/reports/reports_event_handler.php (working copy) @@ -655,7 +655,7 @@ $ChartHelper = $this->Application->recallObject('ChartHelper'); - header("Content-type: image/png"); + $this->Application->setContentType('image/png'); $width = $event->getEventParam('width'); if (!$width) { @@ -693,7 +693,7 @@ { $ChartHelper = $this->Application->recallObject('ChartHelper'); - header("Content-type: image/png"); + $this->Application->setContentType('image/png'); $width = $this->Application->GetVar('width'); if ($width == 0)