From 530bba11d54e755325c3457c365733375082e8a3 Mon Sep 17 00:00:00 2001 From: haturatu Date: Mon, 2 Sep 2024 21:58:53 +0900 Subject: first commit --- README.md | 2 ++ index.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++ style.css | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 README.md create mode 100644 index.php create mode 100644 style.css diff --git a/README.md b/README.md new file mode 100644 index 0000000..8acd30b --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# roxanne + [https://files.soulminingrig.com/](https://files.soulminingrig.com/) diff --git a/index.php b/index.php new file mode 100644 index 0000000..c639b21 --- /dev/null +++ b/index.php @@ -0,0 +1,54 @@ +"; +echo ""; +echo ""; +echo ""; +echo ""; +echo "Files"; +echo ""; +echo ""; +echo ""; + +echo "
"; +echo "

Index of: " . htmlspecialchars($directory) . "

"; +echo ""; +echo "
"; +echo ""; +echo ""; + +function formatSize($bytes) { + $units = array('B', 'KB', 'MB', 'GB', 'TB'); + $bytes = max($bytes, 0); + $pow = floor(($bytes ? log($bytes) : 0) / log(1024)); + $pow = min($pow, count($units) - 1); + $bytes /= (1 << (10 * $pow)); + return round($bytes, 2) . ' ' . $units[$pow]; +} +?> + diff --git a/style.css b/style.css new file mode 100644 index 0000000..63c7fac --- /dev/null +++ b/style.css @@ -0,0 +1,73 @@ +body { + font-family: Arial, sans-serif; + margin: 0; + padding: 0; + background-color: #f0f0f0; +} + +.container { + max-width: 800px; + margin: 0 auto; + padding: 20px; + background-color: white; + box-shadow: 0 0 10px rgba(0,0,0,0.1); +} + +h1 { + color: #333; + border-bottom: 2px solid #333; + padding-bottom: 10px; +} + +ul { + list-style-type: none; + padding: 0; +} + +li { + margin-bottom: 10px; + padding: 10px; + background-color: #f9f9f9; + border-radius: 5px; +} + +li:hover { + background-color: #e9e9e9; +} + +a { + color: #9AA12D; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +.directory::before { + content: "📁 "; +} + +.file::before { + content: "📄 "; +} + +.size { + color: #666; + font-size: 0.9em; +} + +@media (max-width: 600px) { + .container { + padding: 10px; + } + + h1 { + font-size: 1.5em; + } + + li { + padding: 5px; + } +} + -- cgit v1.2.3