4get/sitemap.php

36 lines
970 B
PHP
Raw Normal View History

2023-11-07 13:04:56 +00:00
<?php
header("Content-Type: application/xml");
include "data/config.php";
$domain =
htmlspecialchars(
2024-02-18 04:50:40 +00:00
((isset($_SERVER["HTTPS"]) && ($_SERVER["HTTPS"] == "on" || $_SERVER["HTTPS"] === 1)) ? "https" : "http") .
2023-11-07 13:04:56 +00:00
'://' . $_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>';