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)) {
$badge = publicStipula::getCountBadge();
$badge2 = count(publicStipula::getList(["b_contratti.stato"=>"attesa"],[],0,1));
if (!empty($badge2)) {
$badge = $badge + $badge2;
}
if ($badge > 0) {
// echo "". $badge ."";
echo "";
}
}
?>