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.
57 righe
1.5 KiB
57 righe
1.5 KiB
<? |
|
$error = true; |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; |
|
include_once($configPath); |
|
if (isset($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice) && tokenVerify()) { |
|
$elements = jsonToArray("partecipanti.json"); |
|
$uploaded = massiveHelper::getDataFromUpload($elements,$_POST["filechunk"]); |
|
if (!empty($uploaded)) { |
|
$error = false; |
|
if (!empty($uploaded["data"])) { |
|
$error = false; |
|
if (empty($errors)) { |
|
$_SESSION["importAnac"][$_POST["operationID"]]["partecipanti"] = $uploaded["data"]; |
|
alertManager::printSuccessBox(__("Caricamento effettuato con successo")); |
|
?> |
|
<script> |
|
$('#checkPartecipanti').val("S"); |
|
</script> |
|
<? |
|
} else { |
|
alertManager::printAlertBox(__("Impossibile continuare")); |
|
?> |
|
<div class="table-responsive"> |
|
<table class="table table-striped"> |
|
<thead> |
|
<tr> |
|
<th><?= __("errore") ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
foreach($errors AS $errore) { |
|
?> |
|
<tr> |
|
<td><strong><?= $errore ?></strong></td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
</div> |
|
<? |
|
} |
|
} else { |
|
alertManager::printAlertBox(__("impossibile continuare")); |
|
if (!empty($uploaded["errors"])) { |
|
massiveHelper::printErrors($uploaded["errors"]); |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|