Lines Matching +full:sitemap -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)
6 use dokuwiki\Sitemap\Mapper;
10 * Class Sitemap
12 * Generate an XML sitemap for search engines. Do not confuse with Index
16 class Sitemap extends AbstractAction
25 * Handle sitemap delivery
35 if ($conf['sitemap'] < 1 || !is_numeric($conf['sitemap'])) {
36 throw new FatalException('Sitemap generation is disabled', 404);
39 $sitemap = Mapper::getFilePath();
46 // Check if sitemap file exists, otherwise create it
47 if (!is_readable($sitemap)) {
51 if (is_readable($sitemap)) {
54 header('Content-Disposition: attachment; filename=' . PhpString::basename($sitemap));
56 http_conditionalRequest(filemtime($sitemap));
60 http_sendfile($sitemap);
62 readfile($sitemap);
66 throw new FatalException('Could not read the sitemap file - bad permissions?');