</head>
<body>
- <?php include '/includes/header.php';?>
+ <?php include './includes/header.php';?>
<main>
<p>There's no such link like that on my site. are you looking for easter eggs?!</p>
</main>
- <?php include '/include/footer.php';?>
+ <?php include './includes/footer.php';?>
</body>
</html>
\ No newline at end of file
--- /dev/null
+<?php
+function displayDirectory($dir, $level = 0) {
+ // Open the directory
+ if ($handle = opendir($dir)) {
+ // Loop through the directory contents
+ while (false !== ($entry = readdir($handle))) {
+ // Skip the current and parent directory entries
+ if ($entry != "." && $entry != "..") {
+ // Indent based on the level of depth
+ echo str_repeat(" ", $level * 4); // 4 spaces for each level
+ echo "<li>$entry</li>";
+
+ // If the entry is a directory, recursively call this function
+ if (is_dir($dir . '/' . $entry)) {
+ echo "<ul>";
+ displayDirectory($dir . '/' . $entry, $level + 1);
+ echo "</ul>";
+ }
+ }
+ }
+ closedir($handle);
+ }
+}
+
+// Start displaying from the current directory
+echo "<h1>Filesystem Structure</h1>";
+echo "<ul>";
+displayDirectory(__DIR__); // Use __DIR__ to start from the current directory
+echo "</ul>";
+?>
<audio id="bg-music" src="/audios/background/rejectedworld.mp3" controls loop></audio>
<header>
- <img src=".images/gifs/doraemon.gif" alt="doraemon hello gif" width="100">
+ <img src="/images/gifs/doraemon.gif" alt="doraemon hello gif" width="100">
<img src="/images/gifs/welcomemovetree.gif" alt="tree with welcome text gif" width="300">
<h1>welcome to my website!</h1>
<img src="/images/gifs/homepageburning.gif" alt="under construction text gif" width="300">
</section>\r
</main>\r
\r
- <?php include '/includes/footer.php';?>\r
+ <?php include './includes/footer.php';?>\r
\r
</body>\r
</html>
\ No newline at end of file