GithubHelp home page GithubHelp logo

helloxz / zdir Goto Github PK

View Code? Open in Web Editor NEW
1.4K 38.0 346.0 6.08 MB

A multifunctional private storage program that integrates file indexing, online preview, and sharing, supporting both WebDAV and cloud download.

Home Page: https://www.zdir.pro

License: Apache License 2.0

Go 82.80% Shell 15.08% Dockerfile 0.37% HTML 1.76%
alist file-browser h5ai webdav zdir

zdir's Introduction

中文 | English

About Zdir

Zdir is a multifunctional private storage program developed with Golang + Vue3, integrating file indexing, online preview, and sharing capabilities. It supports WebDAV and Cloud download, making it an ideal choice for installation on NAS devices or large-capacity VPS, suitable for individuals, studios, and small teams to share files.

Origin

2018

Many years ago, the company's operations and maintenance department used nginx to build a file indexing platform for sharing common software for employees to download. However, nginx's indexing capabilities were extremely limited, with a simple interface and single functionality. As a VPS enthusiast who likes to tinker, I, xiaoz, conceived the idea of building my own file-sharing platform. After trying solutions like Fancy Index, PHP Directory Lister, and h5ai, I was still not satisfied. Finally, in 2018, I officially developed Zdir 1.x with PHP.

In 2021, the 2.x.x version officially ended its lifecycle, and since then, we no longer maintain the PHP version of Zdir!

2022

Over time, the problems of the 2.x.x version became increasingly apparent, and the limitations of PHP made it difficult to resolve. Therefore, in 2022, I fully reconstructed it with new technologies Golang and Vue3, releasing a brand-new 3.x.x version.

2024

Today, we proudly announce the arrival of Zdir version 4.x. 4.x has been upgraded and optimized based on the 3.x.x version, with a redesigned front-end interface. We invite you to install and experience it.

Starting from version 4.x, we will no longer open source. The previous source code can still be found on Github: https://github.com/helloxz/zdir

Features of 4.x Version

  • File indexing
  • File preview (supports preview of images, documents, music, videos, etc.)
  • Private files
  • Private file sharing
  • File management (upload, download, delete, rename)
  • Image preview
  • API support
  • WebDAV server support
  • Global file search
  • Integrated front and back ends
  • Text editor
  • Music playlist mode
  • File move, copy
  • Cloud download
  • Multi-language
  • Office preview

Contact Us

Other

zdir's People

Contributors

helloxz avatar jam2199562 avatar johnpoint avatar marukon avatar whfo avatar xiaofaye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zdir's Issues

请教预览下载分离

作者你好.感谢分享如此好的作品

目前个人需求是:
访问 a.bb.com 预览网盘内容
然后点击下载的 实际地址是 b.bb.com:1234
不知该修改那个文件的内容会形成此效果

查看文件hash问题

查看文件hash显示了文件在服务器上的绝对路径,不安全。请求修复改BUG

保存错误

admin.php?p=&edit=README.md&env=ace:373 Uncaught ReferenceError: edit_save is not defined
at HTMLButtonElement.onclick (admin.php?p=&edit=README.md&env=ace:373)

文档预览功能建议用syntaxhighlighter

我发现挺好的,就改了下,用syntaxhighlighter来预览代码,真的很好看的,只要写文件的判断即可,现有用的这个界面等都不能与syntaxhighlighter相比,建议用上。

新建目录默认不显示,需要点击.. 才显示呢。

新建目录默认不显示,需要点击.. 才显示呢。

访问首页。默认不出来目录。
查看了config.php 目录也没有做排除呢

目录名称:soft 或者softs 通过FTP新建。或者登陆后台,新建都是默认不显示

点击文件列表顶部的..

后,可以看到目录
QQ截图20190704104628
QQ截图20190704104639

有几个问题提醒下

  • 屏蔽目录,请检测子目录,现在子目录通过输入网址还可以访问
  • 建议隐藏所有php后缀的文件
  • 请屏蔽所有PHP文件的直接访问:建议在index.php中定义一个常量,在不需要直接访问的php文件中判断是否已经定义常量,没有定义则返回错误

播放器支持?

考虑视频支持下DPlayer,音频采用 APlayer
两个均在GitHub 上有

带%的文件名有问题

lochost/102200-Qundurn%20And%20Harald.jpg
这样就会404 要$url = str_replace("%","%25",$url);才能访问 不知道是为啥 难道是我环境配置的问题?

建议将 资源文件和配置文件分开

现在所有文件都放置在根目录,建议资源文件 放到二级目录下,如data
方便管理,例如我有时候用webdav管理,这样挂载根目录,会看到很多配置文件和源文件,
有可能误删

Warning: is_dir(): open_basedir restriction in effect

点文件索引时这样了。Warning: is_dir(): open_basedir restriction in effect. File(../..) is not within the allowed path(s): (/www/wwwroot/file.ksohu.com/data/User/admin/home/:/tmp/:/proc/) in /functions/indexes.php on line 20

Server Timeout

上传文件就提示这个 Server Timeout ,是在哪里设置延长执行的

文件修改时间显示问题

文件显示的修改时间似乎是GMT +00,而不会加上所在时区的偏移量,所以会和系统时间显示不一致。

根目录显示不全,会漏掉一个目录

我这边的环境,根目录显示的时候,有一个目录没能显示出来
类似
http://xxx.com/ 时显示不全
http://xxx.com/index.php?dir= 时则正常
我这边PHP解释器的问题?

但是因为要用一下,所以稍微看了下,并且改了下代码,暂时全都可以正常显示了。
由于没有开发环境,具体原因没有深究
但是感觉是$i的问题,声明的有点唐突,然后函数也用,大循环也用。

下面是我改的代码(10+年未接触PHP,如有错误还请包涵)
home.zip

启用密码功能与清除缓存冲突

如果启用密码访问(config.php中 "auth" => 参数改为 TRUE),
访问index.php?c=cache&del=cache清除当前缓存并重新生成索引
页面提示Unable to open file!(functions/caches目录已经设置权限777)

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.