Dernières actualités

Edito

'; $str .= dispHomeEdito(); $str .= '

Dernières vidéo

'; $str .= dispHomeLastVideos(); $str .='
 
'; echo $str; } function dispHomeNews(){ $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 < 10 && ($news = mysql_fetch_array($result)); $cpt++) { // 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 .= ' - '.$news["news_date"].'

    '.$news["news_comment"].'



  • '; } } return ($str); } function dispHomeEdito(){ $result = getLastEdito(); if (mysql_num_rows($result)){ $edito = mysql_fetch_array($result); } $str = ' '; return ($str); } function dispHomeLastVideos(){ if ($_SESSION["user_right"] >= $GLOBALS["PRIV_GUEST"] ) { $result = getLastVideosByTendu(2); } else if ($_SESSION["user_right"] >= $GLOBALS["GUEST"] ) { $result = getLastVideosByTendu(1); } else { $result = getLastVideosByTendu(0); } $str = ''; } $str .= ' '; return ($str); } ?>