diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-25 00:13:02 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-25 00:13:02 +0500 |
| commit | 17cdae613d339d31aacabfd232fdd9f67bea6c3a (patch) | |
| tree | 8824c7c0e55bdec8d1eaf129d97257b3fbbfede9 /public/catalogue.php | |
| parent | c734db91064944637e361f90ed90b30d48a7d910 (diff) | |
feat: custom swf parser because swftools is obsolete
Diffstat (limited to 'public/catalogue.php')
| -rw-r--r-- | public/catalogue.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/public/catalogue.php b/public/catalogue.php index f2a5cd6..764b7d2 100644 --- a/public/catalogue.php +++ b/public/catalogue.php @@ -77,15 +77,20 @@ unset($f); <div class="brick<?= isset($file['color']) ? " {$file['color']}" : '' ?>"> <a href="/<?= sprintf('%s.%s', $file['id'], $file['extension']) ?>"> <i title="<?= $file['thumb_title'] ?>"> - <?php if (str_starts_with($file['mime'], 'image/') || str_starts_with($file['mime'], 'video/') || $file['mime'] == 'application/x-shockwave-flash'): ?> + <?php if (str_starts_with($file['mime'], 'image/') || str_starts_with($file['mime'], 'video/')): ?> <img src="<?= sprintf('%s/%s.webp', FILE_THUMBNAIL_DIRECTORY_PREFIX, $file['id']) ?>" alt="No thumbnail." loading="lazy"> <?php elseif (str_starts_with($file['mime'], 'audio/')): ?> - <img src="/static/img/icons/file_audio.png" alt="No thumbnail." loading="lazy"> + <img src="/static/img/icons/file_audio.png" alt="No thumbnail." loading="lazy" width="64" + height="64"> <?php elseif (str_starts_with($file['mime'], 'text/')): ?> - <img src="/static/img/icons/file_text.png" alt="No thumbnail." loading="lazy"> + <img src="/static/img/icons/file_text.png" alt="No thumbnail." loading="lazy" width="64" + height="64"> + <?php elseif ($file['mime'] == 'application/x-shockwave-flash'): ?> + <img src="/static/img/icons/file_flash.png" alt="No thumbnail." loading="lazy" width="64" + height="64"> <?php else: ?> - <img src="/static/img/icons/file.png" alt="No thumbnail."> + <img src="/static/img/icons/file.png" alt="No thumbnail." width="64" height="64"> <?php endif; ?> </i> </a> |
