$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); $error = true; $id_modulo = "provvisoria"; $cmd_info = gara::getInfoModulo($id_modulo); if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice"],$id_modulo) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"]) && !empty($_GET["codice_lotto"])) { $gara = gara::init($_GET["codice"],$_GET["codice_round"]); if (!empty($gara) && $gara->setLotto($_GET["codice_lotto"])) { $record = $gara->info; $round = $gara->round; $lotto = $gara->lotto; $lock = $gara->checkLock($cmd_info["id"]); $scriptPath = $_SERVER["PHP_SELF"]; if (!$lock) { $settingsAnomalia = json_decode(($gara->getExtraInfo()["lotto"]["set-anomalia-{$gara->round["codice"]}"] ?? ""),true); if (empty($gara->getAggiudicatari()) || !empty($_GET["ricalcolo"])) { $algoritmi = $gara->getAlgoritmoAnomalia(); if (count($algoritmi) > 1 && empty($_GET["algoritmo"])) { ?>