diff options
| author | Niklas Olmes <niklas@olmes.de> | 2026-04-24 19:30:00 +0200 |
|---|---|---|
| committer | Niklas Olmes <niklas@olmes.de> | 2026-04-24 19:30:00 +0200 |
| commit | cdea8caa5617f0cb77bcbc9803759abd2df50644 (patch) | |
| tree | 2f7f1bd3af3b2396baf5403ad1a7ad00bcb7fae9 /handle_css.php | |
Diffstat (limited to 'handle_css.php')
| -rw-r--r-- | handle_css.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/handle_css.php b/handle_css.php new file mode 100644 index 0000000..f53892c --- /dev/null +++ b/handle_css.php @@ -0,0 +1,18 @@ +<?php +/* vim: set ts=4 sw=4 et : */ + +if (strstr($_SERVER['REQUEST_URI'], 'handle_')) { + header("HTTP/1.0 404 Not Found"); + exit(0); +} + +require_once __DIR__ . '/common/vendor/autoload.php'; + +use MatthiasMullie\Minify; +$m = new Minify\CSS( + __DIR__ . '/common/css/' . + basename($_GET['css']) +); + +header('Content-Type: text/css; charset=utf-8'); +echo $m->minify(); |
