gerarchia)) { if (!empty($_GET["fields"])) { $campi = json_decode(base64_decode($_GET["fields"]),true); if (!empty($campi)) { $error = false; header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename=model.csv'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); echo '"'; echo implode('";"',$campi); echo '"'; exit; } } } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>