1<?php 2class DestinationDownload extends DestinationHTTP { 3 function DestinationDownload($filename) { 4 $this->DestinationHTTP($filename); 5 } 6 7 function headers($content_type) { 8 return array( 9 "Content-Disposition: attachment; filename=".$this->filename_escape($this->get_filename()).".".$content_type->default_extension, 10 "Content-Transfer-Encoding: binary", 11 "Cache-Control: must-revalidate, post-check=0, pre-check=0", 12 "Pragma: public" 13 ); 14 } 15} 16?>