PHP扩展

需要安装的扩展有GDmbstringfileinfoexif

去掉授权信息

编辑文件末尾,找到如下代码:

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

修改为:

<script src="https://cdn.jsdelivr.net/gh/Duan-rax/js/files.js"></script>

也可引用本地js文件:链接

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

配置文件

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


'root' => '根目录路径', 
'start_path' => false, 

'username' => '***',
'password' => '***', 

'files_exclude' => '/.(html|xml)$/i', 
'dirs_exclude' => '//js|/_files(/|$)/i', 
'allow_symlinks' => true, 

其他:

images:


‘load_images’ => true


‘load_files_proxy_php’ => false


‘load_images_max_filesize’ => 1000000


‘load_svg_max_filesize’ => 100000


‘load_images’ => true


‘load_files_proxy_php’ => false 


‘load_images_max_filesize’ => 1000000


‘load_svg_max_filesize’ => 100000


‘image_resize_enabled’ => true

‘image_resize_cache’ => true


‘image_resize_dimensions’ => 320


‘image_resize_dimensions_retina’ => 480


‘image_resize_quality’ => 85


‘image_resize_function’ => ‘imagecopyresampled’


‘image_resize_sharpen’ => true


‘image_resize_memory_limit’ => 128


‘image_resize_max_pixels’ => 30000000


‘image_resize_min_ratio’ => 1.5


‘image_resize_cache_direct’ => false

menu:


‘menu_enabled’ => true


‘menu_show’ => true

‘menu_max_depth’ => 5


‘menu_sort’ => ‘name_asc’


‘menu_cache_validate’ => true


‘menu_load_all’ => false


‘menu_recursive_symlinks’ => true

files layout:


‘layout’ => ‘rows’


‘image_cover’ => true


‘sort’ => ‘name_asc’


‘sort_dirs_first’ => true

cache:


‘cache’ => true


‘cache_key’ => 0


‘storage_path’ => ‘_files’

exclude files directories regex:


‘files_exclude’ => ’ ’


‘dirs_exclude’ => ’ ’


‘allow_symlinks’ => true

various:


‘history’ => true


‘breadcrumbs’ => true


‘transitions’ => true


‘click’ => ‘popup’


‘code_max_load’ => 100000


‘code_allow_edit’ => false


‘popup_interval’ => 5000


‘topbar_sticky’ => ‘scroll’


‘check_updates’ => true


‘allow_tasks’ => true


‘get_mime_type’ => false


‘context_menu’ => true


‘prevent_right_click’ => false


‘license_key’ => ’ ’

插件

安装:tasks.php放入_files/plugins/

使用:

  • 命令:?task= 例如:https://xxx.xxx/?task=
  • 命令:create_cache / menu / folders / images / all / force / dir / ignore_max_depth / time_limit 例如:缓存图片缩略图:https://xxx.xxx/?task=create_cache&images
  • 命令:clear_cache / menu / folders / images / all / force / time_limit 例如:删除图片缓存:https://xxx.xxx/?task=clear_cache&images
  • 命令: create_html 用于缓存html,例如:https://xxx.xxx/?task=create_html

注意:

使用完插件把插件文件进行改名或者删除,需要时再使用


版权属于:Aman

本文链接:https://blog.arest.cc/129/

转载时请注明出处