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.
26 righe
1001 B
26 righe
1001 B
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$error = true; |
|
if (!empty($_SESSION["utente"])) { |
|
$manager = new pubblicitaLegale($_POST["modulo"],$_POST["codice_elemento"],$_POST["sub"]); |
|
if (!empty($_POST["codice"])) { |
|
$tmp = $manager->getPubblicazioni(["codice"=>$_POST["codice"]]); |
|
if (!empty($tmp)) { |
|
$richiesta = $tmp[0]; |
|
if ($_SESSION["utente"]->permission($richiesta["modulo"],$richiesta["codice_elemento"],"richieste")) { |
|
$pdo->go("DELETE FROM b_pubblicita_legale WHERE codice = :codice",[":codice"=>$_POST["codice"]]); |
|
scriviLog("b_pubblicita_legale","DELETE",$pdo->getSQL(),$_POST["codice"]); |
|
$error = false; |
|
?> |
|
swal({title:js_dict["success-msg"],type:"success"}).then(function(){ tablePubblicazioni.draw() }); |
|
<? |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|