$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); $id_modulo = "contratti"; $cmd_info = gara::getInfoModulo($id_modulo); $error = true; if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"]) && $_SESSION["utente"]->permission($radice,$_GET["codice_gara"],$id_modulo)) { $codice_round = $_GET["codice_round"] ?? NULL; $gara = gara::init($_GET["codice_gara"],$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"]); if (!$lock) { $tmp = $gara->getPartecipanti(); $aggiudicatari = []; foreach($tmp AS $oe) { if ($oe["aggiudicatario"] == "S") { $aggiudicatari[] = $oe; } } if (!empty($oe)) { $error = false; ?>
} } } } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>