<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Neuromancer Directory Index</title>
</head>
<body>
    <h1>Neuromancer/Sprawl Trilogy Directory Index</h1>
    <p>Drink up me hearties yo-ho!</p>
    <br><p>Reading for the first time? Books in order are: Neuromancer, Count Zero, Mona Lisa Overdrive</p> 
    <ul>
        <?php
        // Scan the directory and store the files in an array
        $files = scandir(dirname(__FILE__));

        // Loop through the files and create a list item for each one
        foreach ($files as $file) {
            // Skip the current file and parent directory links
            if ($file === basename(__FILE__) || $file === '.' || $file === '..') {
                continue;
            }
            echo '<li><a href="' . htmlspecialchars($file) . '">' . htmlspecialchars($file) . '</a></li>';
        }
        ?>
    </ul>
    <p><a href="../">Go back...</a></p>
</body>
</html>
