'; $str .= '
'; $str .= ''; $str .= '
'; $str .= '
 
'; $str .= ''; echo $str; } function dispNewsRows(){ $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)){ while ($news = mysql_fetch_array($result)) { // DISP NEWS TITLE BY TENDU $str .= dispWhenTendu($news["news_tendu"]); $str .= '
  • '.$news["news_title"].''; // DISP NEWS CONTENT BY TENDU $str .= dispWhenTendu($news["news_tendu"]); $str .= ' - Le '.date("d/m/Y", strtotime($news["news_date"])).' par '.$news["user_pseudo"].'

    '.$news["news_comment"].'



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