summaryrefslogtreecommitdiff
path: root/sitemap.php
blob: 80bda66dacc6a9097788a4897faa507694a67ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

header("Content-Type: application/xml");
include "data/config.php";

$domain =
	htmlspecialchars(
		(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? "https" : "http") .
		'://' . $_SERVER["HTTP_HOST"]
	);

echo
	'<?xml version="1.0" encoding="UTF-8"?>' .
	'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' .
		'<url>' .
			'<loc>' . $domain . '/</loc>' .
			'<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
		'</url>' .
		'<url>' .
			'<loc>' . $domain . '/about</loc>' .
			'<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
		'</url>' .
		'<url>' .
			'<loc>' . $domain . '/instances</loc>' .
			'<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
		'</url>' .
		'<url>' .
			'<loc>' . $domain . '/settings</loc>' .
			'<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
		'</url>' .
		'<url>' .
			'<loc>' . $domain . '/api.txt</loc>' .
			'<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
		'</url>' .
	'</urlset>';