* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!class_exists('auth')) { include_once ("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// Check Droits utilisateur //////////// if (!$l21auth->isSuperAdmin()) ReloadIndex('admin'); //////////// if(isset($_GET['todo'])) $todo = $_GET['todo']; else $todo = null; $url = SITE_ROOT_URL.'public/'; $sitemap_name= 'sitemap.xml'; $working_path = SITE_PATH.'tmp/'; $sitemap_path = SITE_PATH. 'public/'; include_once($plug->getVar('relative_url').'class.sitemap.php'); $sitemap = new sitemap($url, $sitemap_path, $working_path, $sitemap_name, '0.500'); $sitemap->setLogTag('li'); ?>
generate(); } if($sitemap->exists()) { echo '

'._t('sitemap', 'available_at'). ' '.$sitemap->getVar('sitemap_url').''.'
'; echo sprintf('('._t('sitemap', 'modified_on').') ', $sitemap->lastModified('d-m-Y à G\hi')).'

'; } else { echo '

'.sprintf(_t('sitemap', 'no_sitemap'), $sitemap->getVar('sitemap_url')).'

'; } echo '

'.''._t('sitemap', 'run').''.'

'; if($todo == 'generate') { echo '

'.sprintf(_t('sitemap', 'entries'), $sitemap->getCounter()).'

'; echo ""; echo "
\n"; echo '
    '.$sitemap->getLog().'
'; echo "
\n"; } ?>