漂亮的单文件PHP目录列表程序

2020-10-26 0 1,436 百度已收录
漂亮的单文件PHP目录列表程序

最近get到一个类似h5ai的单文件列目录程序,风格简洁,h5适配好,拿来做文件分享和下载站很不错,跟大家安利一下。

演示地址:http://d.nat.ee/

官网地址:https://files.photo.gallery/

程序下载地址:

https://cdn.jsdelivr.net/npm/files.photo.gallery/index.php

如何去掉授权提示信息?

编辑文件末尾,把

<script src="<?php echo config::$assets ?>js/files.js"></script>

修改为:

<script src="http://d.nat.ee/js/files.js"></script>

如果不想引用第三方地址,自己下载下来引用本地文件就好了。

<script src="js/files.js"></script>

配置根目录、密码访问和排除不需要显示的目录:

// 根目录配置
'root' => '根目录路径', // root path relative to script.
'start_path' => false, // start path relative to script. If empty, root is start path
// 登录账号密码配置
'username' => 'zhujizixun',
'password' => '12345678', // Add password directly or use https://tinyfilemanager.github.io/docs/pwd.html to encrypt the password (encrypted password is more secure, as it prevents your password from being exposed directly in a file).
// 排除文件或者目录
'files_exclude' => '/.(html|xml)$/i', // '/.(pdf|jpe?g)$/i'
'dirs_exclude' => '//js|/_files(/|$)/i', //'//Convert|/football|/node_modules(/|$)/i',
'allow_symlinks' => true, // allow symlinks
收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

栗子博客 网站 漂亮的单文件PHP目录列表程序 https://www.lizi.tw/web/18347.html

建筑工地上施工员,闲暇时弄个博客打发时间,

常见问题
  • 1、杰齐1.7仅适用于PHP5.2 2、需Zend支持 3、尽量使用宝塔面板 4、尽量使用Windows 系统,关关对Linux支持不太友好。
查看详情

相关文章

评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

漂亮的单文件PHP目录列表程序-海报

分享本文封面