summaryrefslogtreecommitdiff
path: root/css/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'css/index.php')
-rw-r--r--css/index.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/css/index.php b/css/index.php
new file mode 100644
index 0000000..b24be0d
--- /dev/null
+++ b/css/index.php
@@ -0,0 +1,14 @@
+<?php
+
+header("Content-Type: text/css");
+$text = "";
+
+$files = array_filter(scandir($_SERVER['DOCUMENT_ROOT'] . "/css"), function ($i) {
+ return str_ends_with($i, ".css");
+});
+
+foreach ($files as $file) {
+ $text .= "\n" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/css/" . $file);
+}
+
+die($text); \ No newline at end of file