All Projects → bajins → directorylister

bajins / directorylister

Licence: MIT License
魔改DirectoryLister支持Markdown,各种优化修改

Programming Languages

PHP
23972 projects - #3 most used programming language
hack
652 projects

Projects that are alternatives of or similar to directorylister

Efo
EFO是一个基于SpringBoot和Vue构建的文件分享系统,包括文件的上传与下载,文件的权限管理,远程文件管理等功能。
Stars: ✭ 327 (+760.53%)
Mutual labels:  file-sharing, file-manager
Cloudreve
🌩支持多家云存储的云盘系统 (Self-deployed file management and sharing system, supports multiple storage providers)
Stars: ✭ 12,318 (+32315.79%)
Mutual labels:  file-sharing, file-manager
Filestash
🦄 A modern web client for SFTP, S3, FTP, WebDAV, Git, Minio, LDAP, CalDAV, CardDAV, Mysql, Backblaze, ...
Stars: ✭ 5,231 (+13665.79%)
Mutual labels:  file-sharing, file-manager
Docviewer
文档/文件查看器(支持本地或者其他app分享过来的word、excel、pdf、rtf等格式文件)
Stars: ✭ 155 (+307.89%)
Mutual labels:  file-sharing, file-manager
Pwndrop
Self-deployable file hosting service for red teamers, allowing to easily upload and share payloads over HTTP and WebDAV.
Stars: ✭ 878 (+2210.53%)
Mutual labels:  file-sharing, file-manager
eyy-indexer
An image and video friendly directory indexer for web directories.
Stars: ✭ 53 (+39.47%)
Mutual labels:  directory-lister, directory-browser
files
Laravel Enso file management add-on for smoothing out some of common cases found when working with files
Stars: ✭ 15 (-60.53%)
Mutual labels:  file-manager
saladin
Dual-pane file manager for Windows.
Stars: ✭ 33 (-13.16%)
Mutual labels:  file-manager
Voila
Voila is a domain-specific language launched through CLI tool for operating with files and directories in massive amounts in a fast & reliable way.
Stars: ✭ 78 (+105.26%)
Mutual labels:  directory
twilight-commander
A simple console file manager.
Stars: ✭ 16 (-57.89%)
Mutual labels:  file-manager
php-file-manager
PHP File Manager
Stars: ✭ 44 (+15.79%)
Mutual labels:  file-manager
iniquity
A re-imagining of the iconic BBS software.
Stars: ✭ 35 (-7.89%)
Mutual labels:  file-sharing
readdir
Recursively read a directory, blazing fast. Use with picomatch or micromatch to match globs.
Stars: ✭ 37 (-2.63%)
Mutual labels:  directory
PiZilla
A lightweight, open-source file sharing web application for local networks.
Stars: ✭ 22 (-42.11%)
Mutual labels:  file-sharing
rustypaste
A minimal file upload/pastebin service.
Stars: ✭ 102 (+168.42%)
Mutual labels:  file-sharing
lolisafe
Blazing fast file uploader and awesome bunker written in node! 🚀
Stars: ✭ 181 (+376.32%)
Mutual labels:  file-sharing
directory-structure
📦 Print a directory tree structure in your Python code.
Stars: ✭ 40 (+5.26%)
Mutual labels:  directory
IPS-BitTracker
Bit Torrent Tracker application for IPS 4.5x Community Suite
Stars: ✭ 18 (-52.63%)
Mutual labels:  file-sharing
steemprojects.com
Steem Projects is a directory of apps, sites and tools build by Steem community
Stars: ✭ 27 (-28.95%)
Mutual labels:  directory
archivebot
💾 A telegram bot for backing up and collecting all kinds of media.
Stars: ✭ 65 (+71.05%)
Mutual labels:  file-sharing

优化的DirectoryLister

GitHub

自定义修改

新旧式样手机效果对比

安装

下载后,解压并上传到已经搭建好 PHP环境 的服务器中,然后就可以上传文件和创建文件夹了!

文件结构

  • 假设你的虚拟主机是 /home/wwwroot/xxx.xx
├─ resources/
│   ├ themes/
│   │ └ bootstrap/
│   │    ├ css/                 # 样式文件夹
│   │    │  └ style.css         # 自定义样式文件
│   │    ├ fonts/               # 字体文件夹
│   │    ├ img/                 # 图片文件夹
│   │    ├ js/                  # JavaScript脚本文件夹
│   │    │  └ prism.js          # 自定义js脚本文件
│   │    ├ default_bulletin.php # 顶部公告栏文件
│   │    ├ default_footer.php   # 底部公共文件
│   │    ├ default_header.php   # 顶部公共文件(可以放网站流量统计代码)
│   │    └ index.php            # 网页主文件,其中可以修改顶部公告栏内容
│   │
│   ├ DirectoryLister.php       # 核心函数处理文件
│   ├ Parsedown.php             # Markdown解析依赖
│   ├ config.php                # 配置文件
│   └ fileTypes.php             # 文件类型定义图标文件
│
├ README.md                     # 该文件夹页面内的 说明简介文件
├ index.php                     # 入口文件
│
└ ......

注意事项:

不显示文件和目录

如果安装lnmp一键包上传DirectoryLister后,不显示文件和目录,那么可能是PHP函数scandir被禁用了,取消禁用即可。

sed -i 's/,scandir//g' /usr/local/php/etc/php.ini
# 取消scandir函数禁用
/etc/init.d/php-fpm restart
# 重启 PHP生效

程序放在网站子目录不显示README.md的解决方法

因为程序有个判断 README.md 路径的代码,而如果是正常使用域名或IP(即使加上),都是可以自适应的。

但是如果把程序放在子目录下,就会无法获取正确 README.md 路径,需要你手动修改下程序里的一句代码。

假设你将程序放在了子目录 zimulu 中(也就是 http://xxx.xx/zimulu 才能访问到程序网页)。

首先打开该文件: /resources/themes/bootstrap/index.php

找到第5行的: $suffix_array = explode('.', $_SERVER['HTTP_HOST']);

将其修改为: $suffix_array = explode('.', $_SERVER['HTTP_HOST']."/zimulu");

简介功能说明

可以在每个文件夹下面放一个 README.md 文件,这个文件里写着简介说明内容即可,格式参考自带的示例文件。

为了避免中文乱码,把 README.md 文件用UTF-8无BOM编码保存!

文件修改说明

修改网站中头部导航标题,去/resources/config.php这个文件里替换web_title的值为自己要改的。

修改网站顶部公告栏内容,去/resources/themes/bootstrap/default_bulletin.php这个文件里编辑。

网站头部公共文件:/resources/themes/bootstrap/default_header.php

网站底部公共文件:/resources/themes/bootstrap/default_footer.php

如果想要插入流量统计代码,那只需要把代码写到 default_header.php 文件内即可。


本程序基于逗比魔改并基于Directory Lister原版魔改

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].