mirror of
https://github.com/vrana/adminer.git
synced 2025-08-24 23:16:15 +02:00
Change switch() to if()
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@371 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
10
_compile.php
10
_compile.php
@@ -92,19 +92,15 @@ if (isset($_GET["file"])) {
|
|||||||
header("HTTP/1.1 304 Not Modified");
|
header("HTTP/1.1 304 Not Modified");
|
||||||
} else {
|
} else {
|
||||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $last_modified) . " GMT");
|
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $last_modified) . " GMT");
|
||||||
switch ($_GET["file"]) {
|
if ($_GET["file"] == "favicon.ico") {
|
||||||
case "favicon.ico":
|
|
||||||
header("Content-Type: image/x-icon");
|
header("Content-Type: image/x-icon");
|
||||||
echo base64_decode("' . base64_encode(file_get_contents("favicon.ico")) . '");
|
echo base64_decode("' . base64_encode(file_get_contents("favicon.ico")) . '");
|
||||||
break;
|
} elseif ($_GET["file"] == "default.css") {
|
||||||
case "default.css":
|
|
||||||
header("Content-Type: text/css");
|
header("Content-Type: text/css");
|
||||||
?>' . file_get_contents("default.css") . '<?php
|
?>' . file_get_contents("default.css") . '<?php
|
||||||
break;
|
} else {
|
||||||
default:
|
|
||||||
header("Content-Type: image/gif");
|
header("Content-Type: image/gif");
|
||||||
echo base64_decode("' . base64_encode(file_get_contents("arrow.gif")) . '");
|
echo base64_decode("' . base64_encode(file_get_contents("arrow.gif")) . '");
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
|
Reference in New Issue
Block a user