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.
38 righe
1020 B
38 righe
1020 B
<? |
|
$errore = true; |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; |
|
include_once($configPath); |
|
if (isset($_SESSION["utente"]) && $_SESSION["utente"]->gerarchia === 1) { |
|
$errore = false; |
|
?> |
|
<div id="xmlPanel"> |
|
<? |
|
ob_start(); |
|
?> |
|
$("#wait_div").show(); |
|
$.ajax({ |
|
url: 'utility/uploadXML.php', |
|
type: 'POST', |
|
dataType: 'text', |
|
data: "token=<?= tokenGen() ?>&anno_riferimento="+$('#anno_riferimento').val()+"&filechunk="+file.name |
|
}) |
|
.done(function(response) { |
|
$("#wait_div").hide(); |
|
$("#xmlPanel").html(response); |
|
}) |
|
.fail(function() { |
|
$("#wait_div").hide(); |
|
swal(js_dict["error-retry"]); |
|
}); |
|
<? |
|
$scriptSuccess = ob_get_clean(); |
|
filesManager::insertUploadForm($scriptSuccess,"xml190",["allowedTypes"=>[".xml"],"maxNumberOfFiles"=>1]); |
|
?> |
|
</div> |
|
<? |
|
} |
|
if ($errore) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|