prepare($sql); if(!$requete->execute(array($_GET['id']*1, $_GET['key']))) die('An error occured, try again later.
'); if(!$infos_user = $requete->fetch()) die('Les informations données sont incorrectes ou la clé de flux RSS est périmé. Créez une nouvelle clé dans les paramètres de votre compte.'); //La clé est correcte //Fermeture du curseur $requete->closeCursor(); //Searching the last notifications $notifications = searchnotification($infos_user['ID'], $bdd, 10000, 0, '0'); //Envoi des en-têtes header("Content-type: application/xml"); $prenom_nom_user = decorrige_caracteres_speciaux($infos_user['prenom']." ".$infos_user['nom']); //Début de l'envoi du fichier echo "<"; ?>?xml version="1.0" encoding="UTF-8"?> Notifications de <?php echo $prenom_nom_user; ?> fr Comunic recevra les notifications non vues de son compte dans ce flux RSS. \n"; echo " \t\t\t ".decorrige_caracteres_speciaux(corrige_caracteres_speciaux($info_creator['prenom']." ".$info_creator['nom']." ".$afficher_notification['message']))." \n"; if(!preg_match('', $afficher_notification['adresse']) AND $afficher_notification['adresse'] != "") echo "\t\t\t ".$urlsite.str_replace('page:', '?id=', str_replace('post:', '&post=', $afficher_notification['adresse']))." \n"; echo "\t\t\t ".$afficher_notification['ID']." \n"; echo "\t\t\t ".decorrige_caracteres_speciaux($info_creator['prenom']." ".$info_creator['nom'])." s'est manifesté(e) dans Comunic. \n"; echo "\t\t\t ".date("r", strtotime($afficher_notification['date_envoi']))." \n"; echo "\t\t \n"; } ?>