0 && !in_array("image", $type)) {
$enableunsplash = false;
}
if ($folder == "/") {
$folder = "";
}
$fullpath = $base . $folder;
?>
0) {
$found = false;
foreach ($type as $t) {
if (strpos($mimetype, $t) === 0) {
$found = true;
break;
}
}
}
if (!$found) {
continue;
}
// Lookup icon from mimetype
if (array_key_exists($mimetype, $MIMEICONS)) {
$icon = $MIMEICONS[$mimetype];
} else { // Allow broad generic
/other icons
$mimefirst = explode("/", $mimetype, 2)[0];
if (array_key_exists($mimefirst . "/other", $MIMEICONS)) {
$icon = $MIMEICONS[$mimetype];
}
}
}
?>
"
data-path=""
data-file="">