plxPlugins->callHook('SitemapBegin'))) return; # On démarre la bufferisation ob_start(); ob_implicit_flush(0); $plxMotor->prechauffage(); $plxMotor->demarrage(); # Entête XML echo ''."\n"; ?> urlRewrite() ?> weekly 1.0 aStats as $stat_num => $stat_info) { if($stat_info['active']==1 AND $stat_num!=$plxMotor->aConf['homestatic']) { echo "\n"; echo "\t\n"; echo "\t\t".$plxMotor->urlRewrite("?static".intval($stat_num)."/".$stat_info['url'])."\n"; echo "\t\tmonthly\n"; echo "\t\t0.8\n"; echo "\t\n"; } } eval($plxMotor->plxPlugins->callHook('SitemapStatics')); # Les catégories foreach($plxMotor->aCats as $cat_num => $cat_info) { if($cat_info['active']==1 AND $cat_info['menu']=='oui' AND ($cat_info['articles']!=0 OR $plxMotor->aConf['display_empty_cat'])) { echo "\n"; echo "\t\n"; echo "\t\t".$plxMotor->urlRewrite("?categorie".intval($cat_num)."/".$cat_info['url'])."\n"; echo "\t\tweekly\n"; echo "\t\t0.8\n"; echo "\t\n"; } } eval($plxMotor->plxPlugins->callHook('SitemapCategories')); # Les articles if($aFiles = $plxMotor->plxGlob_arts->query('/^[0-9]{4}.(?:[0-9]|home|,)*(?:'.$plxMotor->activeCats.'|home)(?:[0-9]|home|,)*.[0-9]{3}.[0-9]{12}.[a-z0-9-]+.xml$/','art','rsort', 0, false, 'before')) { $plxRecord_arts = false; $array=array(); foreach($aFiles as $k=>$v) { # On parcourt tous les fichiers $array[ $k ] = $plxMotor->parseArticle(PLX_ROOT.$plxMotor->aConf['racine_articles'].$v); } # On stocke les enregistrements dans un objet plxRecord $plxRecord_arts = new plxRecord($array); if($plxRecord_arts) { # On boucle sur nos articles while($plxRecord_arts->loop()) { $num = intval($plxRecord_arts->f('numero')); echo "\n"; echo "\t\n"; echo "\t\t".$plxMotor->urlRewrite("?article".$num."/".plxUtils::strCheck($plxRecord_arts->f('url')))."\n"; echo "\t\t".plxDate::formatDate($plxRecord_arts->f('date'),'#num_year(4)-#num_month-#num_day')."\n"; echo "\t\tmonthly\n"; echo "\t\t0.5\n"; echo "\t\n"; } } } eval($plxMotor->plxPlugins->callHook('SitemapArticles')); ?> plxPlugins->callHook('SitemapEnd')); # Restitution écran echo $output; exit; ?>