# HG changeset patch # User Franck Deroche # Date 1193301595 -7200 # Node ID a7e770abbfc61859188f0f6cd0820abd77dc6ea6 # Parent ff57b45eda374ec5b3a57f8d63326272792100a5 Ce cas est maintenant gérer lui aussi dans l'index. diff -r ff57b45eda37 -r a7e770abbfc6 tag.php --- a/tag.php Wed Oct 24 20:06:00 2007 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ -Query(" - SELECT * - FROM Mess M, Tags T, Lien_Tags_Posts L - WHERE M.num_version='Version 10' AND T.Tag='{$tag}' AND M.num_mess=L.idMess AND L.idTag=T.idTag - ORDER BY num_mess DESC"); - $i=0; - while(($row=$Data->GetRow()) && $i++<10) { - $mood = ''; - $Mess=$Data->utf8_ensure(str_replace("

","

",str_replace("

","

", $row['Message']))); - $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); - $Titre = $Data->utf8_ensure($row['Titre']); - $Titre_url = str_replace(" ", "_", strip_tags($Titre)); - $Titre_url = str_replace("-", "_", $Titre_url); - $Titre_url = str_replace(array("é", "è"), "e", $Titre_url); - $Titre_url = str_replace("à", "a", $Titre_url); - $Titre_url = str_replace("ù", "u", $Titre_url); - $Titre_url = str_replace(array("î", "ï"), "i", $Titre_url); - if(!empty($row['Emot'])) { - $mood = "Mood : {$row["; - $row['Emot'] = " " . $row['Emot']; - } - $nbTags = $Data->Query(" - SELECT T.Tag - FROM Tags T, Lien_Tags_Posts L - WHERE L.idMess={$row['num_mess']} AND L.idTag = T.idTag - ORDER BY T.Tag - ", 2); - $tags = ''; - if($nbTags > 0) - { - $tags = "Tags :"; - while(0 !== ($tag = $Data->GetRow(2))) - $tags .= " {$tag['Tag']} |"; - $tags = substr($tags, 0, -1) . ' ;
'; - } - - echo(" -
-

{$Titre} | {$dateFormatee}

- {$mood} - {$Mess} - -
"); - } - $Data->Close(); - include("foot.php"); -?>