/home/u764571690/domains/cubecodex.com/public_html
NameSizeModeActions
admin/-0755rm
api/-0755rm
assets/-0755rm
cache/-0755rm
config/-0755rm
handlers/-0755rm
includes/-0755rm
pages/-0755rm
partials/-0755rm
vendor/-0755rm
.gitignore1370644editdlrm
.htaccess76360644editdlrm
404.php94610644editdlrm
index.php55170644editdlrm
robots.txt2280644editdlrm
sitemap.php30300644editdlrm
Edit: /home/u764571690/domains/cubecodex.com/public_html/sitemap.php (3030B)
'; echo ''; // 1. Static Pages $staticPages = [ '', // Home 'shop', 'courses', 'services', 'internship', 'about', 'contact', 'blogs', 'privacy', 'terms', 'shipping-policy', 'refund-policy' ]; foreach ($staticPages as $page) { echo ''; echo '' . $baseUrl . $page . ''; echo '' . date('Y-m-d') . ''; echo 'weekly'; echo '' . ($page === '' ? '1.0' : '0.8') . ''; echo ''; } // 2. Blog Posts try { $stmt = $pdo->query("SELECT slug, updated_at, created_at FROM blogs WHERE status = 'published' ORDER BY created_at DESC"); while ($row = $stmt->fetch()) { $lastMod = !empty($row['updated_at']) ? date('Y-m-d', strtotime($row['updated_at'])) : date('Y-m-d', strtotime($row['created_at'])); echo ''; echo '' . $baseUrl . 'blog-detail/' . htmlspecialchars($row['slug']) . ''; echo '' . $lastMod . ''; echo 'monthly'; echo '0.7'; echo ''; } } catch (Exception $e) { } // 3. Products try { $stmt = $pdo_cc->query("SELECT id, slug, created_at FROM products WHERE is_active = 1 AND approval_status = 'approved' ORDER BY created_at DESC"); while ($row = $stmt->fetch()) { $slug = !empty($row['slug']) ? $row['slug'] : obfuscate_id($row['id']); $lastMod = date('Y-m-d', strtotime($row['created_at'])); echo ''; echo '' . $baseUrl . 'product-detail/' . htmlspecialchars($slug) . ''; echo '' . $lastMod . ''; echo 'monthly'; echo '0.7'; echo ''; } } catch (Exception $e) { } // 4. Courses try { $stmt = $pdo_cc->query("SELECT id, slug, created_at FROM courses WHERE is_active = 1 AND approval_status = 'approved' ORDER BY created_at DESC"); while ($row = $stmt->fetch()) { $slug = !empty($row['slug']) ? $row['slug'] : obfuscate_id($row['id']); $lastMod = date('Y-m-d', strtotime($row['created_at'])); echo ''; echo '' . $baseUrl . 'course-player/' . htmlspecialchars($slug) . ''; echo '' . $lastMod . ''; echo 'monthly'; echo '0.6'; echo ''; } } catch (Exception $e) { } echo '';