From 052eb54e4a748232dcf1e3a9e7b3f63efdbfb76c Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 22 Jan 2008 14:07:16 +0000 Subject: [PATCH] Change switch() to if() git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@371 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- _compile.php | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) 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") . '