$configPath = substr(__DIR__, 0, strpos(__DIR__, "public_html")) . "/config.php"; include_once($configPath); $id_modulo = "criteri"; $cmd_info = gara::getInfoModulo($id_modulo); $error = true; if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"], $_GET["codice_gara"], $id_modulo)) { $codice_round = $_GET["codice_round"] ?? NULL; $gara = gara::init($_GET["codice_gara"], $codice_round); if (!empty($gara)) { $record = $gara->info; $round = $gara->round; if (!empty($_GET["codice_lotto"])) { $gara->setLotto($_GET["codice_lotto"]); $lotto = $gara->lotto; } $lock = $gara->checkLock($cmd_info["id"]); $busteDisponibili = $gara->busteDisponibili(); $hasSub = false; if (empty($_GET["codice"])) { $input = get_campi("b_gare_richieste"); } else { $input = $gara->getRichiesta($_GET["codice"]); } if (!empty($input) && isset($busteDisponibili[$_GET["busta"]])) { $idBusta = $_GET["busta"]; $error = false; $id = $input["codice"]; if (!$lock) { ?>