include_once PLX_CORE . 'lib/class.plx.glob.php'; include_once PLX_CORE . 'lib/class.plx.record.php'; include_once PLX_CORE . 'lib/class.plx.motor.php'; # On impose le charset header('Content-Type: text/xml; charset=' . PLX_CHARSET); # Creation de l'objet principal et lancement du traitement $plxMotor = new plxMotor(PLX_CONF); $plxMotor->prechauffage(); $plxMotor->demarrage(); # EntĂȘte XML echo '<?xml version="1.0" encoding="' . strtolower(PLX_CHARSET) . '" ?>' . "\n"; ?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"> <url> <loc><?php echo $plxMotor->urlRewrite(); ?> </loc> <changefreq>weekly</changefreq> <priority>1.0</priority> </url> <?php # Les pages statiques foreach ($plxMotor->aStats as $stat_num => $stat_info) { if ($stat_info['active'] != 1 or $stat_info['menu'] != 'oui') { continue; } echo "\n"; echo "\t<url>\n"; echo "\t\t<loc>" . $plxMotor->urlRewrite("?static" . intval($stat_num) . "/" . $stat_info['url']) . "</loc>\n"; echo "\t\t<changefreq>monthly</changefreq>\n";