for new version

This commit is contained in:
icret
2022-05-18 13:38:23 +00:00
parent e7d6ed0274
commit 32d470dd22
139 changed files with 201 additions and 146 deletions

4
admin/manager.php Executable file → Normal file
View File

@@ -2106,8 +2106,8 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white
<?php
if (in_array(strtolower(pathinfo($f, PATHINFO_EXTENSION)), array('gif', 'jpg', 'jpeg', 'png', 'bmp', 'ico', 'svg', 'webp', 'avif'))): ?>
<?php $imagePreview = fm_enc(FM_ROOT_URL . (FM_PATH != '' ? '/' . FM_PATH : '') . '/' . $f); ?>
<!-- 分组图片浏览 -->
<a href="<?php echo $imagePreview ?>" data-toggle="lightbox" data-group="image-group-1"><img src="<?php echo $imagePreview ?>" class="img-rounded" width="100px" height="100px" alt="<?php echo fm_enc($f) ?>"></a>
<!-- 分组图片浏览 -->
<a href="<?php echo $imagePreview;?>" data-toggle="lightbox" data-group="manager-group"><img src="/application/thumb.php?img=<?php echo parse_url($imagePreview)['path'];?>" class="img-rounded" width="100px" height="100px" alt="<?php echo fm_enc($f);?>"></a>
<?php else: ?>
<a href="<?php echo $filelink ?>" title="<?php echo $f ?>">
<?php endif; ?>