webmaster@0: Connect(); webmaster@0: if($type != "cal") webmaster@0: $Data->Query("SELECT * FROM Mess Where num_version='Version 10' ORDER BY num_mess DESC"); webmaster@0: else webmaster@0: $Data->Query("SELECT * FROM Mess WHERE YEAR(DatePost)={$year} AND MONTH(DatePost)={$month} ORDER BY num_mess DESC"); webmaster@0: $i=0; webmaster@0: if($type == "cal") { webmaster@0: echo("
","
",str_replace("
","", $row['Message']))); webmaster@0: $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); webmaster@0: $Titre = $Data->utf8_ensure($row['Titre']); webmaster@0: $Titre_url = str_replace(" ", "_", strip_tags($Titre)); webmaster@0: $Titre_url = str_replace("-", "_", $Titre_url); webmaster@0: $Titre_url = str_replace(array("é", "è"), "e", $Titre_url); webmaster@0: $Titre_url = str_replace("à", "a", $Titre_url); webmaster@0: $Titre_url = str_replace("ù", "u", $Titre_url); webmaster@0: $Titre_url = str_replace(array("î", "ï"), "i", $Titre_url); webmaster@0: if(!empty($row['Emot'])) { webmaster@0: $mood = "