\n \n Rien pour l'instant !\n \n \n"; else { if (isset($titleonly)) { if (!isset($BoxNbMaxNews)) $BoxNbMaxNews = 5; if ($BoxNbMaxNews > $totalnews) $BoxNbMaxNews = $totalnews; if ($BoxNbMaxNews < $totalnews) { $footerbox = 1; $footerboxtext .= "($totalnews)"; //$footerlien = "http://tourmentine.com/?modulepage=affnews&File=$FileNews&start=$totalnews&NbMaxNews=$totalnews"; $footerlien = "http://tourmentine.com/titres.html"; } if (!isset($cropdate)) $cropdate=0; $tabnews = getlastnews($FileNews, $BoxNbMaxNews); for ($i=$BoxNbMaxNews-1 ; $i>=0 ; $i--) { echo ""; if ($cropdate != 0) //echo substr($tabnews[$i]["date"],0,$cropdate).":"; echo substr(short_date($tabnews[$i]["timestamp"],$lang),0,$cropdate).":"; echo $tabnews[$i]["titre"]."
\n"; } } else { if (isset($newsnb)) { $MyNews = getnews($FileNews,$newsnb); echo " \n \n"; //if (isset($MyNews["icone"]) && ($MyNews["icone"] != "")) // echo "\n"; //if (isset($cadrenews) && ($cadrenews != 0)) echo " \n \n
  \n"; //else // echo " \n"; echo $MyNews["message"]."\n
\n"; } else { if (!isset($NbMaxNews)) $NbMaxNews = 5; if ($NbMaxNews > $totalnews) $NbMaxNews = $totalnews; $headclass="centerhead"; $bodyclass="centerbody"; $headstartcode .= ""; $headendcode .="\n"; for($i =0 ; $i < $NbMaxNews ; $i++) { $newsnb = $start-$i; unset($MyNews); $MyNews = getnews($FileNews,$newsnb); $footerbox = 1; //$MyNews["date"] = strftime("%A %e %B %Y",mktime(0,0,0,substr($MyNews["date"],3,2),substr($MyNews["date"],0,2),substr($MyNews["date"],6,4))); if (isset($footerbox)) { $forumfile = $FileNews.".".$newsnb.".forum.csv"; if (file_exists($forumfile)) { $fp = fopen ($forumfile, "r"); $row=0; while ($data = fgetcsv ($fp, 1000, ",")) $row++; $MyNews["commentaires"] = $row; } else $MyNews["commentaires"] = 0; if ($MyNews["commentaires"] < 1) { if (file_exists($forumfile) && !is_writable($forumfile)) $str = $no_messages; else $str = "$add_a_comment"; } else if ($MyNews["commentaires"] > 1) $str = "".$MyNews["commentaires"]."$nb_comment"; else $str = "".$MyNews["commentaires"]." $one_comment"; $footerboxtext = "\n \n \n \n \n
$posted_on ".long_date($MyNews["timestamp"],$lang)."
\n \n \n \n \n
$str
\n"; } $AIcon = $MyNews["icone"]; $AMessage = $MyNews["message"]; $module = "affnews"; $titre = $MyNews["titre"]; //echo " \n \n"; //echo " \n \n
\n"; //echo $MyNews["message"]."\n
\n"; $bodyclass="centerbody"; include "modules/magicbox.php"; if ($newsnb <= 1) { unset($newsnb); break; } } } } } unset($totalnews); unset($MyNews); ?>