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 * nav.php 4 * ----------------------------------------------------------------------------- 5 * Old-school hyperlink navigation bar. 6 * 7 * [ Home ] [ Scan ]NEW! [ Browser ] [ Fingerprint ]NEW! ... 8 * 9 * Reads $GLOBALS['NAV_ITEMS'] (label, page-file, is-new?) from config.php and 10 * highlights the current page using $PAGE_ID (set by the including page, via 11 * header.php). Included from header.php; safe to include standalone too. 12 * ----------------------------------------------------------------------------- 13 */ 14 15 require_once __DIR__ . '/config.php'; 16 require_once __DIR__ . '/functions.php'; 17 18 // Which page are we on? header.php sets $PAGE_ID; fall back to the script name. 19 $__current = isset($PAGE_ID) && $PAGE_ID !== '' 20 ? $PAGE_ID 21 : basename($_SERVER['SCRIPT_NAME'] ?? 'index.php'); 22 23 $__items = isset($GLOBALS['NAV_ITEMS']) && is_array($GLOBALS['NAV_ITEMS']) 24 ? $GLOBALS['NAV_ITEMS'] 25 : array(array('Home', 'index.php', false)); 26 ?> 27 <!-- ============================ NAVIGATION ========================= --> 28 <div class="nav" role="navigation" aria-label="Main navigation"> 29 <?php foreach ($__items as $__it): 30 $__label = $__it[0]; 31 $__file = $__it[1]; 32 $__new = !empty($__it[2]); 33 $__is_current = ($__file === $__current); 34 $__href = url($__file); 35 ?> 36 <span class="navitem"> 37 <span class="brackets">[</span> 38 <?php if ($__is_current): ?> 39 <a class="current" href="<?php echo eattr($__href); ?>" aria-current="page"><?php echo e($__label); ?></a> 40 <?php else: ?> 41 <a href="<?php echo eattr($__href); ?>"><?php echo e($__label); ?></a> 42 <?php endif; ?> 43 <span class="brackets">]</span><?php if ($__new): ?><span class="new-gif" title="Recently added">NEW!</span><?php endif; ?> 44 </span> 45 <?php endforeach; ?> 46 <span class="brackets">[</span> 47 <a href="<?php echo eattr(url('guestbook.php')); ?>"><?php echo e('Guestbook'); ?></a> 48 <span class="brackets">]</span> 49 </div> 50 You are reading the real file being executed on the server. What you see is what runs. |