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.
28 righe
1.1 KiB
28 righe
1.1 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$error = true; |
|
$id_modulo = "partecipanti"; |
|
$cmd_info = concorso::getInfoModulo($id_modulo); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"]) && $_SESSION["utente"]->permission($radice,$_POST["codice_concorso"]) && !empty($_POST["codice_concorso"]) && !empty($_POST["codice_lotto"]) && !empty($_POST["codice_round"])) { |
|
$concorso = concorso::init($_POST["codice_concorso"],$_POST["codice_round"]); |
|
if (!empty($concorso) && $concorso->setLotto($_POST["codice_lotto"])) { |
|
$record = $concorso->info; |
|
$lotto = $concorso->lotto; |
|
$round = $concorso->round; |
|
if ($lotto["stato"] >= 30) { |
|
$status = !$concorso->pubblicaPartecipanti(); |
|
if ($concorso->saveExtraInfo("showPartecipanti-{$concorso->round["codice"]}",$status,"lotto")) { |
|
$error = false; |
|
?> |
|
window.location.reload(); |
|
<? |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|