Location: PHPKode > projects > PHP Report > phpreport-v1.0/FrExportarRelCSV.php
<?
/***********************************************************************************/
/*                                 PHP Report                                      */
/*                                                                                 */
/* Copyright (c) 2005 by Daniela Toniolo, Leonardo Galv√£o and Marli Carneiro       */
/*                                                                                 */
/* This is a free software. You can redistribute it and/or modify it under the     */
/* terms of the GNU General Public License.                                        */
/***********************************************************************************/
	
	header('Content-type: text/x-csv');
	header('Expires: 0');
	header('Content-Disposition: inline; filename=Arquivo.csv');
	header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
	header('Pragma: public');
	
	session_start();
	include("classes/Class_Layout.php");
	Layout::AcessoPagina("Visualizar");
	include("idiomas/Exportar/".$_SESSION["Idioma"].".php");
	include("classes/Class_Conexao.php");
	include("classes/Class_VisualizarRel.php");
	include("classes/Class_CSV.php");
	ExportarRelCSV::VisualizarSalvo($_GET['id']);
?>
Return current item: PHP Report