Giter Club home page Giter Club logo

zdir's Issues

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

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

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

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

带%的文件名有问题

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

查看文件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相比,建议用上。

Server Timeout

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

文件修改时间显示问题

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

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

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

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

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

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

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

点击文件列表顶部的..

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

播放器支持?

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

有几个问题提醒下

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

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

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

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

请教预览下载分离

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

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

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.