$error = true; $configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; include_once($configPath); if (isset($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice) && tokenVerify()) { $path = "{$config["chunk_folder"]}/{$_SESSION["utente"]->codice}/{$_POST["filechunk"]}"; if (file_exists($path)) { $xml = simplexml_load_file($path); $uploaded = xmlToArray($xml); if (!empty($uploaded)) { $error = false; $errors = []; if (!empty($uploaded["pubblicazione"]["metadata"]["annoRiferimento"]) && !empty($uploaded["pubblicazione"]["data"]["lotto"])) { $annoRiferimento = $uploaded["pubblicazione"]["metadata"]["annoRiferimento"]; $errors = anac::massiveImport($_SESSION["ente"]->codice,$annoRiferimento,$uploaded["pubblicazione"]["data"]["lotto"]); } else { $errors[] = __("Formato non riconosciuto"); } if (empty($errors)) { ?> } else { alertManager::printAlertBox(__("Errori nell'importazione")); ?>
| = __("errore") ?> |
|---|
| = $errore ?> |