english/administrator/components/com_aicontactsafe/models/messages.php
// download a file from the attachments folder
download a file from the attachments folder
download a file from the attachments folder
function downloadCSV() {
		$this->ob_clean_all(); 
		$csv_text = $this->_app->_session->get( 'csv_text:' . $this->_sTask );
		$csv_text = str_replace('<br/>',"\r\n",$csv_text);
		header('Content-Description: File Transfer');
		header('Content-Type: application/octet-stream');
		header('Content-Disposition: attachment; filename=aicontactsafe.csv');
		header('Content-Transfer-Encoding: binary');
		header('Expires: 0');
		header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
		header('Pragma: public');
		@ob_clean();
		flush();
		echo $csv_text;
		exit;
	}
function downloadCSV ( ) { $ this -> ob_clean_all ( ) ; $ csv_text = $ this -> _app -> _session -> get ( 'csv_text:' . $ this -> _sTask ) ; $ csv_text = str_replace ( '<br/>' , " \r \n " , $ csv_text ) ; header ( 'Content-Description: File Transfer' ) ; header ( 'Content-Type: application/octet-stream' ) ; header ( 'Content-Disposition: attachment; filename=aicontactsafe.csv' ) ; header ( 'Content-Transfer-Encoding: binary' ) ; header ( 'Expires: 0' ) ; header ( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' ) ; header ( 'Pragma: public' ) ; @ ob_clean ( ) ; flush ( ) ; echo $ csv_text ; exit ; }
download a file from the attachments folder
download a file from the attachments folder
// Make sure there's not anything else left for download