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.
23 righe
863 B
23 righe
863 B
<? |
|
$error = true; |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["utente"]) && !empty($_SESSION["ente"])) { |
|
if (!empty($_SESSION["utente"]->oe)) { |
|
$error = false; |
|
$update = $pdo->prepare("UPDATE r_comunicazioni_utenti SET r_comunicazioni_utenti.letto = 'S' WHERE codice_comunicazione IN (SELECT codice FROM b_comunicazioni WHERE codice_ente = :codice_ente) AND codice_operatore = :codice_operatore "); |
|
$update->bindValue(":codice_operatore",$_SESSION["utente"]->oe["codice"]); |
|
$update->bindValue(":codice_ente",$_SESSION["ente"]->codice); |
|
$update->execute(); |
|
if ($update->rowCount() > 0) { |
|
?> |
|
window.location.reload(); |
|
<? |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|