<?php
require_once __DIR__ . '/includes/auth.php';
header('Content-Type: application/xml; charset=utf-8');

$siteUrl = rtrim(kv2_setting('site_url', rtrim(KV2_BASE_URL, '/')), '/');
$today = date('Y-m-d');
?>
<?= '<?xml version="1.0" encoding="UTF-8"?>' ?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc><?= kv2_e($siteUrl) ?>/login.php</loc>
    <lastmod><?= $today ?></lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc><?= kv2_e($siteUrl) ?>/register.php</loc>
    <lastmod><?= $today ?></lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>