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.
22 righe
1.1 KiB
22 righe
1.1 KiB
<? |
|
if (!isset($root)) { |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (!$_SESSION["utente"]->check(true)) { die(); } |
|
} |
|
if (!empty($_SESSION["utente"]) && !empty($_SESSION["utente"]->oe)) { |
|
$total = $pdo->go("SELECT r_comunicazioni_utenti.codice FROM r_comunicazioni_utenti WHERE r_comunicazioni_utenti.codice_operatore = :oe AND letto = \"N\" AND codice_ente = :ente LIMIT 0,1", |
|
[":ente"=>$_SESSION["ente"]->codice,":oe" => $_SESSION["utente"]->oe["codice"]])->rowCount(); |
|
if ($total > 0) { |
|
echo "<span class='pr-2 float-right'><span data-target='/comunicazioni/badge.php' class='fa fa-circle text-warning'></span></span>"; |
|
} |
|
} else { |
|
if (!empty($_SESSION["utente"]) && !empty($_SESSION["utente"]->enteInnovativo)) { |
|
$chats = Communicator::getMyChats(); |
|
if (!empty($chats) && in_array("N",array_column($chats,"letto"))) { |
|
echo "<span class='pr-2 float-right'><span data-target='/comunicazioni/badge.php' class='fa fa-circle text-warning'></span></span>"; |
|
} |
|
} |
|
} |
|
|
|
?>
|
|
|