' .$nom.' : '.Traduire(date('d M Y',strtotime($data[$config['date_publication']]))); $i++; } $config['home_derniers_fiche_intitule']=''; $champs=array('home_derniers_fiche'=>array('',$derniers_fiches)); echo AfficheChamps($champs); if($restore_config){ $config['home_derniers_fiche']=$save['home_derniers_fiche']; $config['home_derniers_fiche_intitule']=$save['home_derniers_fiche_intitule']; } ?>
"",c1.'.$config['categorie_titre'].',c1.category) as nom from pmd_category as c1 ' .' union ' .' select concat(c2.catsel,"#",c2.catsubsel,"#0") as id, if(c2.'.$config['categorie_titre'].'>"",c2.'.$config['categorie_titre'].',c2.subcategory) as nom from pmd_subcategory as c2 inner join pmd_category as c1 on c2.catsel=c1.selector ' .' union ' .' select concat(c3.catsel,"#",c3.catsubsel,"#",c3.catsubsubsel) as id, if(c3.'.$config['categorie_titre'].'>"",c3.'.$config['categorie_titre'].',c3.subsubcategory) as nom from pmd_subsubcategory c3 inner join pmd_subcategory as c2 on c3.catsubsel=c2.catsubsel inner join pmd_category as c1 on c2.catsel=c1.selector ' ; $res=mysql_query($sql) or die(mysql_error()); while($d=mysql_fetch_assoc($res)){ $tab[$d['id']]= utf8_encode($d['nom']); } ksort($tab); $str.=''; return $str; } function CategorieDroite(){ global $config; if($config['fiche_du_mois']){ $sql='select titre, url, description from pmd_users_special where type="mois" limit 1'; $res=mysql_query($sql) or die('ERREUR SQL :'.mysql_error().'
SQL : '.$sql); $data=mysql_fetch_assoc($res); foreach($data as $k=>$v) $data[$k] = utf8_encode ($v); $str.='
' .'
'.$config['fiche_du_mois_intitule'].'
' .'
'.$data['titre'].'
' .$data['description'] .'
'.$data['url'].'
' .'
'; } # Publicité 5 if($config['publicite_5'] && file_exists($config['publicite_5'])){ $str.='
'; include $config['publicite_5']; $str.='
'; } return $str; } function CategorieGauche(){ global $config; if($config['actu'] && $config['actu_rss']){ $str.='
'; $str.='
'.$config['actu_intitule'].'
'; $res_rss=LireRSS($config['actu_rss']); $str.='
'.strip_tags(/*utf8_decode*/($res_rss[0][0])).'
'; $str.=strip_tags(html_entity_decode(/*utf8_decode*/($res_rss[0][1])),'
').'
'; } if($config['categories_connexes']){ # Catégories Connexes $k='categories_connexes'; $str.='
' .($config[$k.'_intitule'] ?'
'.$config[$k.'_intitule'].'
':'') .'
'; } # Publicité 4 if($config['publicite_4'] && file_exists($config['publicite_4'])){ $str.='
'; $str.=FormatHref(file_get_contents($config['publicite_4'])); $str.='
'; } return $str; } global $mysql_main; if($mysql_main) mysql_close($mysql_main); ?>