Source Code
The entire project, readable in your browser. No hidden JavaScript, no sneaky beacons. If we claimed we don't track you, this is where you check.
|
Pages/
Feeds/
Backend/
Includes/
Stylesheet/
JavaScript/
data/counter.txt and data/guestbook.txt hold visitor-supplied content
(a number and signed messages), so they are not shown here.
|
1 <?php 2 /** 3 * sitemap.php -- Dual-purpose sitemap. 4 * - ?xml -> emits a standard XML sitemap (for crawlers) 5 * - (else) -> a human-readable, retro HTML site map 6 */ 7 require_once __DIR__ . '/includes/config.php'; 8 require_once __DIR__ . '/includes/functions.php'; 9 10 $scheme = is_https() ? 'https' : 'http'; 11 $host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost'; 12 $siteUrl = $scheme . '://' . $host . BASE_URL; 13 14 $pages = array( 15 array('index.php', 'Home', 'The front door and the "what we already know" teaser.'), 16 array('scan.php', 'Scan', 'The full in-browser scan and dashboard.'), 17 array('browser.php', 'Browser', 'Everything JavaScript can read from your browser.'), 18 array('fingerprint.php', 'Fingerprint', 'Your cookie-free SHA-256 browser fingerprint.'), 19 array('privacy.php', 'Privacy', 'Your privacy score and our own privacy policy.'), 20 array('about.php', 'About', 'What this is, why it exists, and the changelog.'), 21 array('source.php', 'Source', 'Read every file in the project.'), 22 array('guestbook.php', 'Guestbook', 'Sign it like it is 2002.'), 23 array('rss.php', 'RSS Feed', 'Site updates as RSS 2.0.'), 24 array('sitemap.php', 'Sitemap', 'This page.'), 25 ); 26 27 // ---- XML mode ---- 28 if (isset($_GET['xml'])) { 29 if (!headers_sent()) { 30 header('Content-Type: application/xml; charset=UTF-8'); 31 header('X-Content-Type-Options: nosniff'); 32 } 33 $lastmod = gmdate('Y-m-d', latest_update_timestamp()); 34 echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; 35 echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n"; 36 foreach ($pages as $p) { 37 if ($p[0] === 'rss.php') continue; // not an HTML page 38 echo " <url>\n"; 39 echo ' <loc>' . htmlspecialchars($siteUrl . '/' . $p[0], ENT_QUOTES | ENT_XML1, 'UTF-8') . "</loc>\n"; 40 echo ' <lastmod>' . $lastmod . "</lastmod>\n"; 41 echo " <changefreq>monthly</changefreq>\n"; 42 echo ' <priority>' . ($p[0] === 'index.php' ? '1.0' : '0.6') . "</priority>\n"; 43 echo " </url>\n"; 44 } 45 echo "</urlset>\n"; 46 exit; 47 } 48 49 // ---- HTML mode ---- 50 $PAGE_TITLE = 'Sitemap'; 51 $PAGE_ID = 'sitemap.php'; 52 include __DIR__ . '/includes/header.php'; 53 ?> 54 55 <h1><?php echo section_icon('globe', '#00FFFF', 22); ?> Sitemap</h1> 56 57 <p>Every page on the site, one hop away. Crawlers may prefer the 58 <a href="<?php echo eattr(url('sitemap.php') . '?xml'); ?>">XML version</a>.</p> 59 60 <table class="data"> 61 <tr><th>Page</th><th>URL</th><th>Description</th></tr> 62 <?php foreach ($pages as $p): ?> 63 <tr> 64 <td class="nowrap"><a href="<?php echo eattr(url($p[0])); ?>"><?php echo e($p[1]); ?></a></td> 65 <td class="mono dim" style="font-size:14px"><?php echo e('/' . $p[0]); ?></td> 66 <td><?php echo e($p[2]); ?></td> 67 </tr> 68 <?php endforeach; ?> 69 </table> 70 71 <div class="asciibox"> 72 <pre class="green mb0" style="font-size:15px"> 73 / 74 |-- index.php ............ Home 75 |-- scan.php ............. Full scan + dashboard 76 |-- browser.php ......... Browser detection + terminal 77 |-- fingerprint.php ..... Fingerprint ID 78 |-- privacy.php ......... Privacy score + policy 79 |-- about.php ........... About + changelog 80 |-- source.php .......... Source viewer 81 |-- guestbook.php ....... Guestbook 82 |-- rss.php ............. RSS feed 83 |-- sitemap.php ......... This map (?xml for crawlers) 84 |-- robots.txt .......... Robots directives 85 |-- api/ 86 | '-- scan.php ........ JSON: headers + IP intel (stores nothing) 87 |-- includes/ ........... config, functions, header, nav, footer 88 '-- assets/ 89 |-- css/style.css 90 '-- js/ ............. detect, fingerprint, scan, terminal, export</pre> 91 </div> 92 93 <?php include __DIR__ . '/includes/footer.php'; ?> 94 You are reading the real file being executed on the server. What you see is what runs. |