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.
33 righe
1.3 KiB
33 righe
1.3 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()) { |
|
ini_set('memory_limit', "512M"); |
|
ini_set("max_execution_time",600); |
|
$enti = $_SESSION["utente"]->getEntiBeneficiari(false); |
|
if (!empty($enti[$_POST["ente"]])) { |
|
$ente = $enti[$_POST["ente"]]; |
|
if (is_numeric($_POST["anno"])) { |
|
anac::importazioneMassivaSuggerimenti190($_POST["anno"],(!empty($_POST["gestore"])) ? $ente["codice"] : null); |
|
$xml = anac::generaXML($ente["codice"],$_POST["anno"],(empty($_POST["gestore"])) ? false : true); |
|
if (!empty($xml)) { |
|
$path = anac::getXMLPath($ente["codice"],$_POST["anno"],(empty($_POST["gestore"])) ? false : true); |
|
$dir = dirname($path); |
|
if (!is_dir($dir)) { mkdir($dir,750,true); } |
|
if (file_put_contents($path,$xml)) { |
|
$error = false; |
|
?> |
|
swal({title:js_dict["success-msg"],type:"success"}).then(function(){ |
|
refreshModalHelper(); |
|
}); |
|
<? |
|
} |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
}
|