changeset 2:1da880ffa7aa

Suppression d'anciennes versions des fichiers comment et index
author Franck Deroche <webmaster@defr.org>
date Sat, 20 Oct 2007 14:26:42 +0200
parents 7dec52982000
children f8591021e45d
files comment.20060616.php comment_.php comment_back.php comment_old.php index.php_
diffstat 5 files changed, 0 insertions(+), 422 deletions(-) [+]
line wrap: on
line diff
--- a/comment.20060616.php	Sat Oct 20 14:25:20 2007 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,84 +0,0 @@
-<?php
-    setlocale(LC_ALL, "fr_FR.utf8@euro");
-     include("classes.php");
-     $id = $_GET['id'];
-     $Data = new DataAccess;
-     $Req = new Requete;
-     
-     $Auteur=$Req->get('Auteur');
-     $Adresse=$Req->get('Adresse');
-     $AdresseMail = $Req->get('AdresseMail');
-     $Comment=$Req->get('Comment');
-     $DateComment=gmdate("Y-m-d H:i:s", time() + 3600*2);
-     if(!is_null($Auteur) && $Auteur!='Votre Nom' && $Auteur != $Adresse && !empty($Comment)) {
-	// Prévention d'un "cassage" par ajout d'un commentaire incorrectement formaté
-	if(!DOMDocument::loadXML('<comment>' . $Comment . '</comment>'))
-		$Comment = '<![CDATA[' . str_replace(']]>', ']]&gt;',$Comment) . ']]>';
-	$ip = $_SERVER['REMOTE_ADDR'];
-	$Data->debugQuery("
-		INSERT INTO Commentaires(MessId, Auteur, Adresse, AdresseMail, Comment, DateComment, ip)
-		VALUES({$id}, '{$Auteur}', '{$Adresse}', '{$AdresseMail}', '{$Comment}', '{$DateComment}', '{$ip}')
-	");
-	$Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}");
-      }
-
-     $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}");
-     $row = $Data->GetRow();
-      $mood = '';
-      $Mess=$Data->utf8_ensure(str_replace("<P>","<p>",str_replace("</P>","</p>", $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);
-      include("top.php");
-      if(!empty($row['Emot'])) {
-	$mood = "<img src='/blog/mood/{$row['Emot']}.png' alt='Mood : {$row['Emot']}' class='mood' />";
-	$row['Emot'] = " " . $row['Emot'];
-      }
-      echo("
-       <div class='PostContent{$row['Emot']}'>
-        <h2>{$Titre} | <span class='Date'>{$dateFormatee}</span></h2>
-	 {$mood}
-	 {$Mess}<br />
-       </div>");
-      $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm");
-      $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png");
-      while(0 !== ($row = $Data->GetRow())) {
-         $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment']));
-         $AdresseMail = $row['AdresseMail'];
-	 $grav_id = md5($AdresseMail);
-	 $Comment = nl2br($row['Comment']);
-	$Comment = str_replace(" & ", " &amp; ", $Comment);
-	 if($row['num_comm'] == 172) $Comment = str_replace("</sup>", "</del>", $Comment);
-	 //if(stristr($Adresse, "@")) $Adresse = "mailto:" . $Adresse;
-	 $betterHref = (stristr($row['Adresse'], 'http://') != false)?"href='{$row['Adresse']}'":'';
-	      echo("
-	<div class='PostContent'>
-	  <div class='Infos'>
-		  <img class='gravatar' src='http://www.gravatar.com/avatar.php?gravatar_id={$grav_id}&amp;size=50&amp;default=$defaultGravatar' alt='' />
-		  <a {$betterHref} name='c{$row['num_comm']}'>{$row['Auteur']}</a> {$dateFormatee}
-	  </div>
-	  <div class='Comment'>{$Comment}</div>
-	  <br class='endComment' />
-	</div>");
-      }
-      echo("
-	<div class='PostContent'>
-	  <a href='/blog/'>Revenir au blog</a>
-	</div>
-	<div class='PostContent'>
-	<form method='post' action='#'>
-	   <div id='FormCommentaire'>
-		Vous souhaitez ajouter un nouveau commentaire ? Faites donc, il vous suffit de remplir
-		le petit formulaire ci-dessous.
-		<input type='text' name='Auteur' value='Votre Nom' onfocus=\"if(this.value== this.getAttribute('value')) this.value='';\" />
-		<input type='text' name='AdresseMail' value='Une adresse mail où vous joindre ? ( Non affichée publiquement )' onfocus=\"if(this.value == this.getAttribute('value')) this.value='';\"/>
-		<input type='text' name='Adresse' value='Un site web à vous ?' onfocus=\"if(this.value == this.getAttribute('value')) this.value='';\"/>
-		<textarea name='Comment' rows='10' cols='40' onfocus=\"if(this.value == 'Et z\'enfin, votre petit commentaire') this.value='';\">Et z'enfin, votre petit commentaire</textarea>
-		<input type='submit' value='Poster ce commentaire' />
-	   </div>
-	</form>
-       </div>
-      ");
-     include("foot.php");
-?>
--- a/comment_.php	Sat Oct 20 14:25:20 2007 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-<?php
-    setlocale(LC_ALL, "fr_FR.utf8@euro");
-     include("classes.php");
-     $id = $_GET['id'];
-     $Data = new DataAccess;
-     
-     $Auteur=$_POST['Auteur'];
-     $Adresse=$_POST['Adresse'];
-     $AdresseMail = $_POST['AdresseMail'];
-     $Comment=$_POST['Comment'];
-     $DateComment=gmdate("Y-m-d H:i:s", time() + 3600*2);
-     if(!is_null($Auteur) && $Auteur!='Votre Nom' && !is_null($Comment)) {
-	// Prévention d'un "cassage" par ajout d'un commentaire incorrectement formaté
-	if(!@domxml_open_mem('<comment>' . $Comment . '</comment>', DOMXML_LOAD_PARSING, $err))
-		$Comment = '<![CDATA[' . $Comment . ']]>';
-	$Data->Query("INSERT INTO Commentaires(MessId, Auteur, Adresse, AdresseMail, Comment, DateComment) VALUES({$id}, '{$Auteur}', '{$Adresse}', '{$AdresseMail}', '{$Comment}', '{$DateComment}')");
-	$Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}");
-      }
-
-     $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}");
-     $row = $Data->GetRow();
-      $mood = '';
-      $Mess=$Data->utf8_ensure(str_replace("<P>","<p>",str_replace("</P>","</p>", $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);
-      include("top.php");
-      if(!empty($row['Emot'])) {
-	$mood = "<img src='/blog/mood/{$row['Emot']}.png' alt='Mood : {$row['Emot']}' class='mood' />";
-	$row['Emot'] = " " . $row['Emot'];
-      }
-      echo("
-       <div class='PostContent{$row['Emot']}'>
-        <h2>{$Titre} | <span class='Date'>{$dateFormatee}</span></h2>
-	 {$mood}
-	 {$Mess}<br />
-       </div>");
-      $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm");
-      $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png");
-      while(0 !== ($row = $Data->GetRow())) {
-         $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment']));
-         $AdresseMail = $row['AdresseMail'];
-	 $grav_id = md5($AdresseMail);
-	 $Comment = nl2br($row['Comment']);
-	$Comment = str_replace(" & ", " &amp; ", $Comment);
-	 if($row['num_comm'] == 172) $Comment = str_replace("</sup>", "</del>", $Comment);
-	 //if(stristr($Adresse, "@")) $Adresse = "mailto:" . $Adresse;
-	 $betterHref = (stristr($row['Adresse'], 'http://') != false)?"href='{$row['Adresse']}'":'';
-	      echo("
-	<div class='PostContent'>
-	  <div class='Infos'>
-		  <img class='gravatar' src='http://www.gravatar.com/avatar.php?gravatar_id={$grav_id}&amp;size=50&amp;default=$defaultGravatar' alt='' />
-		  <a {$betterHref} name='c{$row['num_comm']}'>{$row['Auteur']}</a> {$dateFormatee}
-	  </div>
-	  <div class='Comment'>{$Comment}</div>
-	  <br class='endComment' />
-	</div>");
-      }
-      echo("
-	<div class='PostContent'>
-	  <a href='/blog/'>Revenir au blog</a>
-	</div>
-	<div class='PostContent'>
-	<form method='post' action='#'>
-	   <div id='FormCommentaire'>
-		Vous souhaitez ajouter un nouveau commentaire ? Faites donc, il vous suffit de remplir
-		le petit formulaire ci-dessous.
-		<input type='text' name='Auteur' value='Votre Nom' onfocus=\"if(this.value== this.getAttribute('value')) this.value='';\" />
-		<input type='text' name='AdresseMail' value='Une adresse mail où vous joindre ? ( Non affichée publiquement )' onfocus=\"if(this.value == this.getAttribute('value')) this.value='';\"/>
-		<input type='text' name='Adresse' value='Un site web à vous ?' onfocus=\"if(this.value == this.getAttribute('value')) this.value='';\"/>
-		<textarea name='Comment' rows='10' cols='40' onfocus=\"if(this.value == 'Et z\'enfin, votre petit commentaire') this.value='';\">Et z'enfin, votre petit commentaire</textarea>
-		<input type='submit' value='Poster ce commentaire' />
-	   </div>
-	</form>
-       </div>
-      ");
-     include("foot.php");
-?>
--- a/comment_back.php	Sat Oct 20 14:25:20 2007 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,84 +0,0 @@
-<?php
-    setlocale(LC_ALL, "fr_FR.utf8@euro");
-     include("classes.php");
-     $id = $_GET['id'];
-     $Data = new DataAccess;
-     $Req = new Requete;
-     
-     $Auteur=$Req->get('Auteur');
-     $Adresse=$Req->get('Adresse');
-     $AdresseMail = $Req->get('AdresseMail');
-     $Comment=$Req->get('Comment');
-     $DateComment=gmdate("Y-m-d H:i:s", time() + 3600*2);
-     if(!is_null($Auteur) && $Auteur!='Votre Nom' && !empty($Comment)) {
-	// Prévention d'un "cassage" par ajout d'un commentaire incorrectement formaté
-	//if(!@domxml_open_mem('<comment>' . $Comment . '</comment>', DOMXML_LOAD_PARSING, $err))
-	if(!DOMDocument::loadXML('<comment>' . $Comment . '</comment>'))
-		$Comment = '<![CDATA[' . $Comment . ']]>';
-	$Data->debugQuery("
-		INSERT INTO Commentaires(MessId, Auteur, Adresse, AdresseMail, Comment, DateComment)
-		VALUES({$id}, '{$Auteur}', '{$Adresse}', '{$AdresseMail}', '{$Comment}', '{$DateComment}')
-	");
-	$Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}");
-      }
-
-     $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}");
-     $row = $Data->GetRow();
-      $mood = '';
-      $Mess=$Data->utf8_ensure(str_replace("<P>","<p>",str_replace("</P>","</p>", $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);
-      include("top.php");
-      if(!empty($row['Emot'])) {
-	$mood = "<img src='/blog/mood/{$row['Emot']}.png' alt='Mood : {$row['Emot']}' class='mood' />";
-	$row['Emot'] = " " . $row['Emot'];
-      }
-      echo("
-       <div class='PostContent{$row['Emot']}'>
-        <h2>{$Titre} | <span class='Date'>{$dateFormatee}</span></h2>
-	 {$mood}
-	 {$Mess}<br />
-       </div>");
-      $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm");
-      $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png");
-      while(0 !== ($row = $Data->GetRow())) {
-         $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment']));
-         $AdresseMail = $row['AdresseMail'];
-	 $grav_id = md5($AdresseMail);
-	 $Comment = nl2br($row['Comment']);
-	$Comment = str_replace(" & ", " &amp; ", $Comment);
-	 if($row['num_comm'] == 172) $Comment = str_replace("</sup>", "</del>", $Comment);
-	 //if(stristr($Adresse, "@")) $Adresse = "mailto:" . $Adresse;
-	 $betterHref = (stristr($row['Adresse'], 'http://') != false)?"href='{$row['Adresse']}'":'';
-	      echo("
-	<div class='PostContent'>
-	  <div class='Infos'>
-		  <img class='gravatar' src='http://www.gravatar.com/avatar.php?gravatar_id={$grav_id}&amp;size=50&amp;default=$defaultGravatar' alt='' />
-		  <a {$betterHref} name='c{$row['num_comm']}'>{$row['Auteur']}</a> {$dateFormatee}
-	  </div>
-	  <div class='Comment'>{$Comment}</div>
-	  <br class='endComment' />
-	</div>");
-      }
-      echo("
-	<div class='PostContent'>
-	  <a href='/blog/'>Revenir au blog</a>
-	</div>
-	<div class='PostContent'>
-	<form method='post' action='#'>
-	   <div id='FormCommentaire'>
-		Vous souhaitez ajouter un nouveau commentaire ? Faites donc, il vous suffit de remplir
-		le petit formulaire ci-dessous.
-		<input type='text' name='Auteur' value='Votre Nom' onfocus=\"if(this.value== this.getAttribute('value')) this.value='';\" />
-		<input type='text' name='AdresseMail' value='Une adresse mail où vous joindre ? ( Non affichée publiquement )' onfocus=\"if(this.value == this.getAttribute('value')) this.value='';\"/>
-		<input type='text' name='Adresse' value='Un site web à vous ?' onfocus=\"if(this.value == this.getAttribute('value')) this.value='';\"/>
-		<textarea name='Comment' rows='10' cols='40' onfocus=\"if(this.value == 'Et z\'enfin, votre petit commentaire') this.value='';\">Et z'enfin, votre petit commentaire</textarea>
-		<input type='submit' value='Poster ce commentaire' />
-	   </div>
-	</form>
-       </div>
-      ");
-     include("foot.php");
-?>
--- a/comment_old.php	Sat Oct 20 14:25:20 2007 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,85 +0,0 @@
-<?php
-    setlocale(LC_ALL, "fr_FR.utf8@euro");
-     include("classes.php");
-     $id = $_GET['id'];
-     $Data = new DataAccess;
-     $Req = new Requete;
-     
-     $Auteur=$Req->get('Auteur');
-     $Adresse=$Req->get('Adresse');
-     $AdresseMail = $Req->get('AdresseMail');
-     $Comment=$Req->get('Comment');
-     $DateComment=gmdate("Y-m-d H:i:s", time() + 3600*2);
-     if(!is_null($Auteur) && $Auteur!='Votre Nom' && !empty($Comment)) {
-	// Prévention d'un "cassage" par ajout d'un commentaire incorrectement formaté
-	//if(!@domxml_open_mem('<comment>' . $Comment . '</comment>', DOMXML_LOAD_PARSING, $err))
-	if(!DOMDocument::loadXML('<comment>' . $Comment . '</comment>'))
-		$Comment = '<![CDATA[' . $Comment . ']]>';
-	$ip = $_SERVER['REMOTE_ADDR'];
-	$Data->debugQuery("
-		INSERT INTO Commentaires(MessId, Auteur, Adresse, AdresseMail, Comment, DateComment, ip)
-		VALUES({$id}, '{$Auteur}', '{$Adresse}', '{$AdresseMail}', '{$Comment}', '{$DateComment}', '{$ip}')
-	");
-	$Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}");
-      }
-
-     $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}");
-     $row = $Data->GetRow();
-      $mood = '';
-      $Mess=$Data->utf8_ensure(str_replace("<P>","<p>",str_replace("</P>","</p>", $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);
-      include("top.php");
-      if(!empty($row['Emot'])) {
-	$mood = "<img src='/blog/mood/{$row['Emot']}.png' alt='Mood : {$row['Emot']}' class='mood' />";
-	$row['Emot'] = " " . $row['Emot'];
-      }
-      echo("
-       <div class='PostContent{$row['Emot']}'>
-        <h2>{$Titre} | <span class='Date'>{$dateFormatee}</span></h2>
-	 {$mood}
-	 {$Mess}<br />
-       </div>");
-      $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm");
-      $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png");
-      while(0 !== ($row = $Data->GetRow())) {
-         $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment']));
-         $AdresseMail = $row['AdresseMail'];
-	 $grav_id = md5($AdresseMail);
-	 $Comment = nl2br($row['Comment']);
-	$Comment = str_replace(" & ", " &amp; ", $Comment);
-	 if($row['num_comm'] == 172) $Comment = str_replace("</sup>", "</del>", $Comment);
-	 //if(stristr($Adresse, "@")) $Adresse = "mailto:" . $Adresse;
-	 $betterHref = (stristr($row['Adresse'], 'http://') != false)?"href='{$row['Adresse']}'":'';
-	      echo("
-	<div class='PostContent'>
-	  <div class='Infos'>
-		  <img class='gravatar' src='http://www.gravatar.com/avatar.php?gravatar_id={$grav_id}&amp;size=50&amp;default=$defaultGravatar' alt='' />
-		  <a {$betterHref} name='c{$row['num_comm']}'>{$row['Auteur']}</a> {$dateFormatee}
-	  </div>
-	  <div class='Comment'>{$Comment}</div>
-	  <br class='endComment' />
-	</div>");
-      }
-      echo("
-	<div class='PostContent'>
-	  <a href='/blog/'>Revenir au blog</a>
-	</div>
-	<div class='PostContent'>
-	<form method='post' action='#'>
-	   <div id='FormCommentaire'>
-		Vous souhaitez ajouter un nouveau commentaire ? Faites donc, il vous suffit de remplir
-		le petit formulaire ci-dessous.
-		<input type='text' name='Auteur' value='Votre Nom' onfocus=\"if(this.value== this.getAttribute('value')) this.value='';\" />
-		<input type='text' name='AdresseMail' value='Une adresse mail où vous joindre ? ( Non affichée publiquement )' onfocus=\"if(this.value == this.getAttribute('value')) this.value='';\"/>
-		<input type='text' name='Adresse' value='Un site web à vous ?' onfocus=\"if(this.value == this.getAttribute('value')) this.value='';\"/>
-		<textarea name='Comment' rows='10' cols='40' onfocus=\"if(this.value == 'Et z\'enfin, votre petit commentaire') this.value='';\">Et z'enfin, votre petit commentaire</textarea>
-		<input type='submit' value='Poster ce commentaire' />
-	   </div>
-	</form>
-       </div>
-      ");
-     include("foot.php");
-?>
--- a/index.php_	Sat Oct 20 14:25:20 2007 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,90 +0,0 @@
-<?php
-    setlocale(LC_ALL, "fr_FR.utf8@euro", "fr_FR.utf8");
-     include("classes.php");
-     $type = $_GET['type'];
-     $year = $_GET['year'];
-     $month = $_GET['month'];
-     $prevMonth = ($month - 1)%12; if($prevMonth == 0) $prevMonth = 12; $prevYear = ($month == 1)?$year-1:$year;
-     $nextMonth = $month % 12 + 1; $nextYear = ($month == 12)?$year+1:$year;
-     $Data = new DataAccess;
-     include("top.php");
-     $Data->Connect();
-     if($type != "cal") 
-	$Data->Query("SELECT * FROM Mess Where num_version='Version 10' ORDER BY num_mess DESC");
-     else
-	$Data->Query("SELECT * FROM Mess WHERE YEAR(DatePost)={$year} AND MONTH(DatePost)={$month} ORDER BY num_mess DESC");
-     $i=0;
-     if($type == "cal") {
-	echo("<div class='cal'>");
-	if($prevYear > $startDate['year'] - 1 || ($prevYear > $startDate['Year'] - 2 && $prevMonth > $startDate['month'] - 1))
-		echo("<a class='calPrev' href='/blog/posts/{$prevYear}/{$prevMonth}'>{$arMonth[$prevMonth - 1]} {$prevYear}</a>");
-	else
-		echo("<a class='calPrev'>{$arMonth[$prevMonth - 1]} {$prevYear}</a>");
-	if(($curYear == $nextYear && $nextMonth < $curMonth + 1) || ($nextYear < $curYear) )
-		echo("<a class='calNext' href='/blog/posts/{$nextYear}/" . ($month % 12 + 1)  ."'>{$arMonth[$month%12]} {$nextYear}</a>");
-	else
-		echo("<a class='calNext'>{$arMonth[$month%12]} {$nextYear}</a>");
-	echo("{$arMonth[$month - 1]} {$year}</div> ");
-     }
-     while(($row=$Data->GetRow()) && ($i++<10 || $type == "cal")) {
-      $mood = '';
-      $Mess=$Data->utf8_ensure(str_replace("<P>","<p>",str_replace("</P>","</p>", $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 = "<img src='/blog/mood/{$row['Emot']}.png' alt='Mood : {$row['Emot']}' class='mood' />";
-	$row['Emot'] = " " . $row['Emot'];
-      }
-      echo("
-       <div class='PostContent{$row['Emot']}'>
-        <h2>{$Titre} | <span class='Date'>{$dateFormatee}</span></h2>
-	 {$mood}
-	 {$Mess}<br />
-	 <a href=\"/blog/posts/{$row['num_mess']}-{$Titre_url}\">#{$row['num_mess']}</a> - 
-	 <a href=\"/blog/posts/{$row['num_mess']}-{$Titre_url}\">
-	 ");
-      if(!is_null($row['NbCommentaires']) && $row['NbCommentaires']!=0)
-	echo("Un 'tit commentaire ( {$row['NbCommentaires']} ) ?");
-      else
-       echo("Un 'tit commentaire ?");
-      echo("
-        </a>");
-      $nb = $Data->debugQuery("
-	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);
-      if($nb > 0)
-      {
-	  $tags = '';
-	  while(0 !== ($tag = $Data->GetRow(2)))
-	    $tags .= " <a href='/blog/tags/{$tag['Tag']}'>{$tag['Tag']}</a> -";
-	  $tags = substr($tags, 0, -1);
-	  echo(" ; <em>Tags</em> : {$tags}");
-      }
-      echo("
-
-       </div>");
-     }
-     if($type == "cal") {
-	echo("<div class='cal'>");
-	if($prevYear > $startDate['year'] - 1 && $prevMonth > $startDate['month'] - 1)
-		echo("<a class='calPrev' href='/blog/posts/{$prevYear}/{$prevMonth}'>{$arMonth[$prevMonth - 1]} {$prevYear}</a>");
-	else
-		echo("<a class='calPrev'>{$arMonth[$prevMonth - 1]} {$prevYear}</a>");
-	if(($curYear == $nextYear && $nextMonth < $curMonth + 1) || ($nextYear < $curYear) )
-		echo("<a class='calNext' href='/blog/posts/{$nextYear}/" . ($month % 12 + 1)  ."'>{$arMonth[$month%12]} {$nextYear}</a>");
-	else
-		echo("<a class='calNext'>{$arMonth[$month%12]} {$nextYear}</a>");
-	echo("{$arMonth[$month - 1]} {$year}</div> ");
-     }
-     $Data->Close();
-     include("foot.php");
-?>