$tab_accueil['user']['masque'] = NULL; } else { if (HEBERGEUR_INSTALLATION == 'multi-structures') { $tab_accueil['user']['contenu'] .= '<div>Adresse à utiliser pour une sélection automatique de l\'établissement : <b>' . URL_DIR_SACOCHE . '?base=' . $_SESSION['BASE'] . '</b></div>'; } if ($_SESSION['CONNEXION_MODE'] != 'normal') { $get_base = $_SESSION['BASE'] ? '=' . $_SESSION['BASE'] : ''; $tab_accueil['user']['contenu'] .= '<div>Adresse à utiliser pour une connexion automatique avec l\'authentification externe : <b>' . URL_DIR_SACOCHE . '?sso' . $get_base . '</b></div>'; } } } // //////////////////////////////////////////////////////////////////////////////////////////////////// // [notifications] - Indication du nombre de notifications en attente // //////////////////////////////////////////////////////////////////////////////////////////////////// if (!in_array($_SESSION['USER_PROFIL_TYPE'], array('webmestre', 'developpeur', 'partenaire'))) { $nb_notifications_non_vues = DB_STRUCTURE_NOTIFICATION::DB_compter_notifications_non_vues($_SESSION['USER_ID']); if ($nb_notifications_non_vues) { $s = $nb_notifications_non_vues > 1 ? 's' : ''; $tab_accueil['notifications']['contenu'] .= '<div class="b">' . html(Lang::_("Notifications à consulter")) . '</div>'; $tab_accueil['notifications']['contenu'] .= '<p>Vous avez <a href="./index.php?page=consultation_notifications"><span class="b">' . $nb_notifications_non_vues . ' notification' . $s . '</span></a> non vue' . $s . '.</p>'; } } // //////////////////////////////////////////////////////////////////////////////////////////////////// // [messages] & [ecolo] - Panneau d'informations (message d'autres utilisateurs) ou message écolo // //////////////////////////////////////////////////////////////////////////////////////////////////// if ($_SESSION['USER_PROFIL_TYPE'] == 'professeur') { } else { if (!in_array($_SESSION['USER_PROFIL_TYPE'], array('webmestre', 'developpeur', 'partenaire'))) { $DB_TAB = DB_STRUCTURE_COMMUN::DB_lister_messages_user_destinataire($_SESSION['USER_ID']); if (!empty($DB_TAB)) { foreach ($DB_TAB as $key => $DB_ROW) {