示例#1
0
    exit;
}
# On inclut les librairies nécessaires
include_once PLX_ROOT . 'config.php';
include_once PLX_CORE . 'lib/class.plx.date.php';
include_once PLX_CORE . 'lib/class.plx.utils.php';
include_once PLX_CORE . 'lib/class.plx.capcha.php';
include_once PLX_CORE . 'lib/class.plx.erreur.php';
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