'; $str .= '
'; $str .= ''; $str .= '
'; echo $str; } function dispNewsRows($max_news = PHP_INT_MAX) { $str = ''; if ($_SESSION["user_right"] >= $GLOBALS["PRIV_GUEST"] ) $result = getLastNews(2); else if ($_SESSION["user_right"] >= $GLOBALS["GUEST"] ) $result = getLastNews(1); else $result = getLastNews(0); if (mysql_num_rows($result)) { for ($cpt = 0; $cpt < $max_news && ($news = mysql_fetch_array($result)); $cpt++) { $str .= dispWhenTendu($news["news_tendu"]); $str .= '
  • '.$news["news_title"].''; $str .= dispWhenTendu($news["news_tendu"]); $str .= ' - le '.date("d/m/Y", strtotime($news["news_date"])).' par '.$news["user_pseudo"].'

    '.$news["news_comment"].'



  • '; } } return $str; } ?>