gestione gare pubbliche
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.
 
 
 
 
 

24 righe
935 B

<?
$error =true;
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission("task",$_POST["codice"])) {
$bind = array(":codice"=>$_POST["codice"],":codice_utente"=>$_SESSION["utente"]->codice);
$sql = "DELETE FROM b_tasks WHERE codice = :codice AND codice_utente = :codice_utente ";
$ris = $pdo->go($sql,$bind);
if ($ris->rowCount() === 1) {
$bind = array(":codice"=>$_POST["codice"],":codice_utente"=>$_SESSION["utente"]->codice,":codice_ente"=>$_SESSION["ente"]->codice);
$sql = "DELETE FROM r_alert_task WHERE codice_task = :codice AND codice_ente = :codice_ente AND codice_utente = :codice_utente ";
$pdo->go($sql,$bind);
$error =false;
?>
window.location.reload();
<?
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>