}
 // Enregistrement de la demande
 $score = $score != -1 ? $score : NULL;
 $demande_id = DB_STRUCTURE_DEMANDE::DB_ajouter_demande($_SESSION['USER_ID'], $matiere_id, $item_id, $prof_id, $score, 'eleve', $message, $demande_doc);
 // Ajout aux flux RSS des profs concernés
 $titre = 'Demande ajoutée par ' . afficher_identite_initiale($_SESSION['USER_NOM'], FALSE, $_SESSION['USER_PRENOM'], TRUE);
 $texte = $_SESSION['USER_PRENOM'] . ' ' . $_SESSION['USER_NOM'] . ' ajoute la demande ' . $DB_ROW['item_ref'] . ' "' . $DB_ROW['item_nom'] . '".' . "\r\n";
 $texte .= $demande_doc ? 'Document joint : ' . $demande_doc . "\r\n" : 'Pas de document joint.' . "\r\n";
 $texte .= $message ? 'Commentaire :' . "\r\n" . $message . "\r\n" : 'Pas de commentaire saisi.' . "\r\n";
 $guid = 'demande_' . $demande_id . '_add';
 if ($prof_id) {
     RSS::modifier_fichier_prof($prof_id, $titre, $texte, $guid);
 } else {
     // On récupère les profs...
     $tab_prof_id = array();
     $DB_TAB = DB_STRUCTURE_DEMANDE::DB_recuperer_professeurs_eleve_matiere($_SESSION['USER_ID'], $_SESSION['ELEVE_CLASSE_ID'], $matiere_id);
     if (!empty($DB_TAB)) {
         foreach ($DB_TAB as $DB_ROW) {
             $tab_prof_id[] = $DB_ROW['user_id'];
             RSS::modifier_fichier_prof($DB_ROW['user_id'], $titre, $texte, $guid);
         }
     }
 }
 // Notifications (rendues visibles ultérieurement) ; on récupère des données conçues pour le flux RSS ($texte , $tab_prof_id)
 $abonnement_ref = 'demande_evaluation_eleve';
 $listing_profs = $prof_id ? $prof_id : (!empty($tab_prof_id) ? implode(',', $tab_prof_id) : NULL);
 if ($listing_profs) {
     $listing_abonnes = DB_STRUCTURE_NOTIFICATION::DB_lister_destinataires_listing_id($abonnement_ref, $listing_profs);
     if ($listing_abonnes) {
         $notification_contenu = $texte;
         $tab_abonnes = explode(',', $listing_abonnes);