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.
27 righe
948 B
27 righe
948 B
<? |
|
$error = true; |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice) && $_SESSION["utente"]->gerarchia <= 10 && !empty($_POST["codice"])) { |
|
$continua = false; |
|
$report = reportManager::getSelfManagedReport($_POST["codice"]); |
|
if (!isset($_SESSION["ente"]) || $_SESSION["ente"]->codice == $report["codice_gestore"]) { |
|
$continua = true; |
|
} |
|
if ($continua) { |
|
$pdo->go("DELETE FROM b_report_personalizzati WHERE codice = :codice",[":codice"=>$_POST["codice"]]); |
|
scriviLog("b_report_personalizzati","DELETE",$pdo->getSQL(),$_POST["codice"]); |
|
$error = false; |
|
?> |
|
swal({title:js_dict["success-msg"],type:"success"}).then(function() { |
|
refreshModalHelper(); |
|
}); |
|
<? |
|
} |
|
} |
|
|
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|