$error = true; $configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; include_once($configPath); $id_modulo = "partecipanti"; if (isset($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice_gara"],$id_modulo)) { $gara = gara::init($_GET["codice_gara"],$_GET["codice_round"]); if (!empty($gara)) { if ($gara->setLotto($_GET["codice_lotto"]) && !$gara->checkLock($id_modulo)) { $lotto = $gara->lotto; if (!empty($_GET["codice"])) { $partecipante = $gara->getPartecipante($_GET["codice"]); } else if (!$gara->getModalita()["online"]) { $partecipante = get_campi("r_partecipanti_gare"); if (!empty($_GET["codice_operatore"])) { $oeInfo = oeManager::getOE($_GET["codice_operatore"]); if (!empty($oeInfo)) { $partecipante["codice_operatore"] = $oeInfo["codice"]; $partecipante["ragione_sociale"] = $oeInfo["ragione_sociale"]; $partecipante["codice_fiscale"] = $oeInfo["codice_fiscale_impresa"]; $partecipante["stato"] = $oeInfo["stato_legale"]; } } } if (!empty($partecipante)) { $error = false; ?>
} } } } if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>