miaPartecipazione(); if (!empty($partecipante)) { $busta = $elenco->getBusta($partecipante["codice"],$_POST["codice_richiesta"],true); if (!empty($busta)) { $content = $busta["content"]; } } } if ($content !== false) { header('Content-Type: ' . $busta["mime"]); header('Content-Disposition: attachment; filename='.$busta["nomeFile"]); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); echo $content; } else { header('HTTP/1.0 403 Forbidden'); echo __("Errore nella richiesta"); die(); } } ?>