sitemap.php 939 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. header("Content-Type: application/xml");
  3. include "data/config.php";
  4. $domain =
  5. htmlspecialchars(
  6. (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? "https" : "http") .
  7. '://' . $_SERVER["HTTP_HOST"]
  8. );
  9. echo
  10. '<?xml version="1.0" encoding="UTF-8"?>' .
  11. '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' .
  12. '<url>' .
  13. '<loc>' . $domain . '/</loc>' .
  14. '<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
  15. '</url>' .
  16. '<url>' .
  17. '<loc>' . $domain . '/about</loc>' .
  18. '<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
  19. '</url>' .
  20. '<url>' .
  21. '<loc>' . $domain . '/instances</loc>' .
  22. '<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
  23. '</url>' .
  24. '<url>' .
  25. '<loc>' . $domain . '/settings</loc>' .
  26. '<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
  27. '</url>' .
  28. '<url>' .
  29. '<loc>' . $domain . '/api.txt</loc>' .
  30. '<lastmod>2023-07-31T07:56:12+03:00</lastmod>' .
  31. '</url>' .
  32. '</urlset>';