Coder Social home page Coder Social logo

directorylister's Introduction

一个逗比魔改的Directory Lister~

魔改特点:

我之所以使用Directory Lister,就是因为这个程序非常的简洁,符合我心中对 目录列表程序的定义,在使用期间,根据我个人喜好和审美做了一些改变。

  • 界面式样魔改
  • 支持中文目录和文件名
  • 支持显示各文件夹内的简介说明
  • 默认调用的各种CDN文件本地化
  • 等等 ...

演示示例:

逗比云 https://softs.fun

下载安装:

下载压缩文件后,解压并上传到已经搭建好 PHP和HTTP环境的服务器中(lnmp.org),然后即可上传文件和创建文件夹了!

Github打包:https://github.com/ToyoDAdoubi/DirectoryLister/archive/master.zip

逗比云打包:https://softs.fun/Website/Directory%20Lister%E9%AD%94%E6%94%B9%E7%89%88%28by-Toyo%29%20v2.6.1.zip

文件结构

假设你的虚拟主机是 /home/wwwroot/xxx.xx

/home/wwwroot/xxx.xx
├─ resources
│   ├ themes
│   │ └ bootstrap
│   │    └ .....
│   │
│   ├ DirectoryLister.php
│   ├ config.php
│   └ fileTypes.php
│
├ README.html # 文件夹内的 说明简介文件 #
├ index.php
│
├─ 测试文件夹
│   ├ 测试文件.txt
│   └ README.html # 文件夹内的 说明简介文件 #
│
└ 测试文件.txt

注意事项:

不显示文件和目录

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

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

简介功能说明

我也不知道该给这个功能起什么名字,好捉急偶。

使用这个功能,需要打开resources\themes\bootstrap\index.php文件,找到第五行的:

$md_path = explode("com", $md_path_all);

com改成你的域名后缀(比如xxx.cn就是改成cn),当初只是自用,现在一公开开源,我给忘了。

反正就是每个文件夹下面放一个README.html文件,这个文件里写着 简介说明内容即可。

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

文件修改说明

修改网站中头部导航标题,去这个文件里搜索DOUBI Soft然后全部替换为自己要改的。

\resources\DirectoryLister.php

修改网站标签栏的标题,去这个文件里把开头<title>标签中的DOUBI Soft替换为自己要改的。

\resources\themes\bootstrap\index.php

网站头部公共文件:

\resources\themes\bootstrap\default_header.php

网站底部公共文件:

\resources\themes\bootstrap\default_footer.php

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

——————

我的博客 逗比根据地(需挂代理):https://doub.io/dbrj-3/

本程序基于 Directory Lister原版魔改:http://www.directorylister.com/

directorylister's People

Watchers

James Cloos avatar zilong.zhou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.