From: bochard Date: Sun, 27 Apr 2025 14:04:21 +0000 (+0800) Subject: updated /files X-Git-Url: https://git.bochard.net/?a=commitdiff_plain;h=ce14d85279cf151fb0b9565fd18f7f3b98e8a057;p=mysite.git updated /files --- diff --git a/files/90279.jpg b/files/90279.jpg deleted file mode 100755 index be59ec4..0000000 Binary files a/files/90279.jpg and /dev/null differ diff --git a/files/Bliss_(Windows_XP).png b/files/Bliss_(Windows_XP).png deleted file mode 100755 index 22ceab5..0000000 Binary files a/files/Bliss_(Windows_XP).png and /dev/null differ diff --git a/files/ascent.jpg b/files/ascent.jpg deleted file mode 100755 index aed77f5..0000000 Binary files a/files/ascent.jpg and /dev/null differ diff --git a/files/autumn.avif b/files/autumn.avif deleted file mode 100755 index 9bf696b..0000000 Binary files a/files/autumn.avif and /dev/null differ diff --git a/files/azul.jpg b/files/azul.jpg deleted file mode 100755 index 0b76525..0000000 Binary files a/files/azul.jpg and /dev/null differ diff --git a/files/bg_music/another_folder/index.php b/files/bg_music/another_folder/index.php new file mode 100644 index 0000000..c102ebc --- /dev/null +++ b/files/bg_music/another_folder/index.php @@ -0,0 +1,61 @@ +"; + echo "Index of /$fullPath"; + echo ""; + echo "

Index of /$fullPath


";
+    echo '../' . PHP_EOL;
+
+    $items = [];
+    while (false !== ($entry = readdir($handle))) {
+        // Skip the current and parent directory entries and index.php
+        if ($entry != "." && $entry != ".." && $entry != "index.php") {
+            $items[] = $entry;
+        }
+    }
+    closedir($handle);
+
+    sort($items);
+
+    foreach ($items as $entry) {
+        $filePath = $dir . "/" . $entry;
+        $lastModified = date("d-M-Y H:i", filemtime($filePath));
+        $size = is_dir($filePath) ? "-" : filesize($filePath);
+        $link = htmlspecialchars($entry);
+        
+        // Check if it's a directory and add a trailing slash
+        if (is_dir($filePath)) {
+            $link .= '/'; // Add trailing slash for directories
+        }
+        
+        echo "$link" . str_repeat(" ", 50 - strlen($link)) . "$lastModified" . str_repeat(" ", 10 - strlen($size)) . "$size" . PHP_EOL;
+    }
+
+    echo "

"; + echo ""; + echo ""; +} else { + echo "Unable to open directory."; +} +?> diff --git a/files/bg_music/childhood2.mp3 b/files/bg_music/childhood2.mp3 new file mode 100755 index 0000000..068a74e Binary files /dev/null and b/files/bg_music/childhood2.mp3 differ diff --git a/files/bg_music/index.php b/files/bg_music/index.php new file mode 100644 index 0000000..c102ebc --- /dev/null +++ b/files/bg_music/index.php @@ -0,0 +1,61 @@ +"; + echo "Index of /$fullPath"; + echo ""; + echo "

Index of /$fullPath


";
+    echo '../' . PHP_EOL;
+
+    $items = [];
+    while (false !== ($entry = readdir($handle))) {
+        // Skip the current and parent directory entries and index.php
+        if ($entry != "." && $entry != ".." && $entry != "index.php") {
+            $items[] = $entry;
+        }
+    }
+    closedir($handle);
+
+    sort($items);
+
+    foreach ($items as $entry) {
+        $filePath = $dir . "/" . $entry;
+        $lastModified = date("d-M-Y H:i", filemtime($filePath));
+        $size = is_dir($filePath) ? "-" : filesize($filePath);
+        $link = htmlspecialchars($entry);
+        
+        // Check if it's a directory and add a trailing slash
+        if (is_dir($filePath)) {
+            $link .= '/'; // Add trailing slash for directories
+        }
+        
+        echo "$link" . str_repeat(" ", 50 - strlen($link)) . "$lastModified" . str_repeat(" ", 10 - strlen($size)) . "$size" . PHP_EOL;
+    }
+
+    echo "

"; + echo ""; + echo ""; +} else { + echo "Unable to open directory."; +} +?> diff --git a/files/bg_music/rejectedworld.mp3 b/files/bg_music/rejectedworld.mp3 new file mode 100755 index 0000000..4c624ef Binary files /dev/null and b/files/bg_music/rejectedworld.mp3 differ diff --git a/files/childhood2.mp3 b/files/childhood2.mp3 deleted file mode 100755 index 068a74e..0000000 Binary files a/files/childhood2.mp3 and /dev/null differ diff --git a/files/index.php b/files/index.php index a80646a..c102ebc 100755 --- a/files/index.php +++ b/files/index.php @@ -1,70 +1,61 @@ - - - - - - Index of /files/ - - -

Index of /files/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSizeDate Modified
../
90279.jpg222.8 kB3/24/25, 19:16:28
ascent.jpg45.0 kB3/24/25, 19:20:25
autumn.avif237.4 kB3/24/25, 19:17:35
azul.jpg83.9 kB3/24/25, 19:20:10
Bliss_(Windows_XP).png107.3 kB3/24/25, 19:14:58
childhood2.mp31.6 MB3/24/25, 19:58:44
rejectedworld.mp31.4 MB3/24/25, 19:58:44
- - - - +"; + echo "Index of /$fullPath"; + echo ""; + echo "

Index of /$fullPath


";
+    echo '../' . PHP_EOL;
+
+    $items = [];
+    while (false !== ($entry = readdir($handle))) {
+        // Skip the current and parent directory entries and index.php
+        if ($entry != "." && $entry != ".." && $entry != "index.php") {
+            $items[] = $entry;
+        }
+    }
+    closedir($handle);
+
+    sort($items);
+
+    foreach ($items as $entry) {
+        $filePath = $dir . "/" . $entry;
+        $lastModified = date("d-M-Y H:i", filemtime($filePath));
+        $size = is_dir($filePath) ? "-" : filesize($filePath);
+        $link = htmlspecialchars($entry);
+        
+        // Check if it's a directory and add a trailing slash
+        if (is_dir($filePath)) {
+            $link .= '/'; // Add trailing slash for directories
+        }
+        
+        echo "$link" . str_repeat(" ", 50 - strlen($link)) . "$lastModified" . str_repeat(" ", 10 - strlen($size)) . "$size" . PHP_EOL;
+    }
+
+    echo "

"; + echo ""; + echo ""; +} else { + echo "Unable to open directory."; +} +?> diff --git a/files/rejectedworld.mp3 b/files/rejectedworld.mp3 deleted file mode 100755 index 4c624ef..0000000 Binary files a/files/rejectedworld.mp3 and /dev/null differ diff --git a/files/wallpapers/Bliss_(Windows_XP).png b/files/wallpapers/Bliss_(Windows_XP).png new file mode 100755 index 0000000..22ceab5 Binary files /dev/null and b/files/wallpapers/Bliss_(Windows_XP).png differ diff --git a/files/youtube_xvFZjo5PgG0_640x360_h264.mp4 b/files/youtube_xvFZjo5PgG0_640x360_h264.mp4 new file mode 100644 index 0000000..aa2b881 Binary files /dev/null and b/files/youtube_xvFZjo5PgG0_640x360_h264.mp4 differ