file.php 404 B

12345678910111213141516
  1. <?php
  2. function get_mime_type($name) {
  3. $extension = pathinfo($name, PATHINFO_EXTENSION);
  4. $type = match ($extension) {
  5. "css" => "text/css"
  6. };
  7. return $type;
  8. };
  9. function get_placeholder() {
  10. // Base64-encoded gray (50% opacity) PNG pixel
  11. return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNsqAcAAYUBAdpOiIkAAAAASUVORK5CYII=";
  12. }
  13. ?>