$error = true; $configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); if (isset($_SESSION["utente"]) && isset($_SESSION["ente"]) && $_SESSION["utente"]->isSupportoOrRoot()) { $elements = jsonToArray(__DIR__."/elements.json"); $uploaded = massiveHelper::getDataFromUpload($elements,$_POST["filechunk"]); if (!empty($uploaded)) { $error = false; if (!empty($uploaded["data"])) { $tokenImport = generateStrongPassword(5,false,'lud'); $_SESSION["bulkImportFornitori"][$tokenImport] = $uploaded["data"]; alertManager::printInfoBox(__("Validazione eseguita con successo"),__("Numero di fornitori che saranno importati").": " . count($uploaded["data"])); ?>
} if (!empty($uploaded["errors"])) { alertManager::printAlertBox(__("impossibile continuare")); if (!empty($uploaded["errors"])) { massiveHelper::printErrors($uploaded["errors"]); } } } } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>