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.
19 righe
669 B
19 righe
669 B
<? |
|
$error =true; |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice) && !empty($_POST["codice"]) && tokenVerify()) { |
|
$goToMtg = new goToMtg; |
|
$result = $goToMtg->createFirstHostToken($_POST["code"],$_SESSION["ente"]->codice,$_POST["codice"]); |
|
if ($result === true) { |
|
$error = false; |
|
?> |
|
swal({title:"<?= __("Operazione effettuata con successo") ?>",type:"success"}).then(function() { window.location.reload()}); |
|
<? |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|