Compress CSS

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@576 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-04-10 12:01:11 +00:00
parent d72bf4ccf9
commit 8eb5ea17b3

View file

@ -119,7 +119,7 @@ if (isset($_GET["file"])) {
echo base64_decode("' . base64_encode(file_get_contents("favicon.ico")) . '");
} elseif ($_GET["file"] == "default.css") {
header("Content-Type: text/css");
?>' . file_get_contents("default.css") . '<?php
?>' . preg_replace('~\\s*([:;{},])\\s+~', '\\1', file_get_contents("default.css")) . '<?php
} else {
header("Content-Type: image/gif");
switch ($_GET["file"]) {