Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
29 righe
957 B
29 righe
957 B
<? |
|
$configPath = substr(__DIR__, 0, strpos(__DIR__, "public_html")) . "/config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["utente"]) && !empty($_GET["codice_lotto"])) { |
|
$concorso = publicConcorso::init($_GET["codice"]); |
|
if (!empty($concorso)) { |
|
if ($concorso->setLotto($_GET["codice_lotto"])) { |
|
$record = $concorso->info; |
|
$round = $concorso->round; |
|
$lotto = $concorso->lotto; |
|
$partecipante = $concorso->miaPartecipazione(); |
|
if (!empty($partecipante) && $partecipante["conferma"] == "S") { |
|
$content = $concorso->getRicevuta(); |
|
$pdf = documentConverter::getPDFWithWKHTML($content,"A4","portrait"); |
|
if (!empty($pdf)) { |
|
$error = false; |
|
header("Content-type: application/pdf"); |
|
header("Content-Disposition: attachment; filename=ricevuta.pdf"); |
|
echo $pdf; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|