Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
39 righe
1.2 KiB
39 righe
1.2 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$error = true; |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_POST["codice"]) && tokenVerify()) { |
|
$gara = gara::init($_POST["codice"]); |
|
if ((!empty($gara) && $gara->quickAvailable) && ($_SESSION["utente"]->isSupportoOrRoot() || empty($gara->info["stato"]))) { |
|
if (empty($gara->info["stato"]) && empty($gara->getRounds())) { |
|
$fasi = $gara->getProcedura()["fasi"] ?? null; |
|
if (!empty($fasi)) { |
|
foreach($fasi AS $id => $fase) { |
|
if ($fase["obbligatoria"]) { |
|
if ($gara->inizializzaFase($id,$fase)) { |
|
$error = false; |
|
break; |
|
} |
|
} |
|
} |
|
} |
|
} else { |
|
$error = false; |
|
} |
|
if (!$error) { |
|
$gara->saveExtraInfo('quickPanel',$_POST["quickPanel"]); |
|
if(!empty($_POST['marketplace']) && $_POST['marketplace'] == true){ |
|
return ['save' => true]; |
|
}else{ |
|
?> |
|
window.location.reload(); |
|
<? |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|