From: jakubvrana Date: Tue, 22 Jan 2008 14:07:16 +0000 (+0000) Subject: Change switch() to if() X-Git-Tag: v3.0.0~1143 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=052eb54e4a748232dcf1e3a9e7b3f63efdbfb76c;p=adminer.git Change switch() to if() git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@371 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/_compile.php b/_compile.php index 2a0242b4..412fb86d 100644 --- a/_compile.php +++ b/_compile.php @@ -92,19 +92,15 @@ if (isset($_GET["file"])) { header("HTTP/1.1 304 Not Modified"); } else { header("Last-Modified: " . gmdate("D, d M Y H:i:s", $last_modified) . " GMT"); - switch ($_GET["file"]) { - case "favicon.ico": - header("Content-Type: image/x-icon"); - echo base64_decode("' . base64_encode(file_get_contents("favicon.ico")) . '"); - break; - case "default.css": - header("Content-Type: text/css"); - ?>' . file_get_contents("default.css") . '' . file_get_contents("default.css") . '