"pdf02.gif", "1" => "exel.gif", "2" => "word.gif", "3" => "zip.gif", "4" => "ic_audio.gif", "5" => "media.gif", "6" => "", ); //Version anglaise activer if($lg=='en') { $urlLangue = " |  FRANÇAIS"; } else { if(@query("activer","activerSite","id=2 and version='anglaise'")==1){ $urlLangue = " |  ENGLISH"; }else{ $urlLangue = " |  ENGLISH"; } } if(!$idDetail){ $idDetail = md5(query("id","section","WHERE section = 'section1' and positionAffichage=1")); } ################################ ## coordonnee require_once("includes/coordonnee.inc.php"); ################################ ## Affichage du menu ob_start(); $res = sql_query("SELECT * FROM section WHERE section = 'section1' ".(($lg=='en') ? " AND titreSection_en <> ''" : "")." order by positionAffichage"); echo( "
\n" ."
\n" ); while($r=sql_fetch_object($res)) { echo( "id)."\" class=sousmenu1>".(($idDetail==md5($r->id)) ? "" : "").(($lg=='en') ? $r->titreSection_en : $r->titreSection).(($idDetail==md5($r->id)) ? "" : "")."

\n" ); } echo("
\n"); $afficheMenu1 = ob_get_contents(); ob_clean(); ################################ ## Affichage centre ob_start(); if($idDetail){ $nomTable = "texte"; $pathUpload = "upload/texte/"; $nbrPhoto = 1; $widthDetail = "500"; $afficheRetour=false; $sql = "SELECT * FROM ".$nomTable." WHERE idSection>0"; $res=sql_query($sql); while($r=sql_fetch_object($res)) { if(md5($r->idSection)==$idDetail){ $idDetail=$r->idSection; } } $sql = "SELECT * FROM ".$nomTable." WHERE idSection=$idDetail limit 1"; $res=sql_query($sql); $nbr = sql_num_rows($res); if($nbr){ require_once("includes/CMS_afficheDetail.inc.php"); } } $afficheCentre = ob_get_contents(); ob_clean(); #################################### ## statistique visiteurs et membres ob_start(); require_once("includes/afficheStat.inc.php"); $txtStat = ob_get_contents(); ob_clean(); if($lg=='en') { if($nbr && $idDetail){ $titreSection = TITRE." - ".query("titreSection_en", "section", "WHERE id=$idDetail"); $titreSection1 = query("titreSection_en", "section", "WHERE id=$idDetail"); }else{ $titreSection = TITRE." - Qui sommes-nous?"; $titreSection1 = "Qui sommes-nous?"; } require_once("includes/enteteHTML.inc.php"); require_once("includes/openSites.js.php"); require_once("templates/en_template1.inc.php"); }else{ if($nbr && $idDetail){ $titreSection = TITRE." - ".query("titreSection", "section", "WHERE id=$idDetail"); $titreSection1 = query("titreSection", "section", "WHERE id=$idDetail"); }else{ $titreSection = TITRE." - Qui sommes-nous?"; $titreSection1 = "Qui sommes-nous?"; } require_once("includes/enteteHTML.inc.php"); require_once("includes/openSites.js.php"); require_once("templates/template1.inc.php"); }