<?php
// PHP warnings XML ni break cheyakunda apadaniki (Error hiding)
error_reporting(0);
ini_set('display_errors', 0);

// Browser ki idi XML file ani cheppadaniki
header("Content-Type: application/xml; charset=utf-8");

// Mee website URL
$base_url = "https://septictankcleaningkakinada.in";

// Current date
$current_date = date('c');

// XML Start
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n";

// Mee website loni pages (Mee site lo unna pages batti ikkada add/remove chesukondi)
$pages = [
    '/' => ['priority' => '1.0', 'changefreq' => 'daily'],
    '/about.php' => ['priority' => '0.8', 'changefreq' => 'monthly'],
    '/services.php' => ['priority' => '0.9', 'changefreq' => 'weekly'],
    '/contact.php' => ['priority' => '0.8', 'changefreq' => 'monthly']
];

foreach ($pages as $path => $meta) {
    echo "  <url>\n";
    echo "    <loc>" . htmlspecialchars($base_url . $path) . "</loc>\n";
    echo "    <lastmod>" . $current_date . "</lastmod>\n";
    echo "    <changefreq>" . $meta['changefreq'] . "</changefreq>\n";
    echo "    <priority>" . $meta['priority'] . "</priority>\n";
    echo "  </url>\n";
}

// XML End
echo '</urlset>';
?>