Skip to content

chenvip5/oneindex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oneindex

Onedrive Directory Index

功能:

不用服务器空间,不走服务器流量,

直接列onedrive目录,文件直链下载。

需求:

1、PHP空间,PHP 5.6+ 打开curl支持
2、onedrive business 账号 (企业版或教育版)
3、oneindex 程序

安装:

1、复制oneindex到服务器,设置config/config/base.phpcache/ 可读写
2、浏览器访问、绑定账号
3、可以使用

demo

列目录:https://xn.tn
直连下载:https://xn.tn/node-v8.9.4-x64.msi
图片直连:http://xn.tn/bg.jpg
Alt text

Q&A:

Q:需要企业版或教育版的全局管理员?
A:不需要,全局管理员开出来的子账号就可以,不过该域名在office365必须要有管理员

Q:文件上传后,不能即时在程序页面显示出来?
A:有缓存,可以在config/base.php设置缓存时间。

Q:能去掉链接中的/?/吗?
A:可以,使用wordrepss的规则,然后修改 config/base.php:
'root_path' => '?' 改为 'root_path' => ''

Q:能否使用自己的client_id、client_secret?
A: 1、按照 https://moeclub.org/2017/03/17/24/ 教程获得 client_id、client_secret、code
2、修改 config/base.php 中的值
3、访问 http://你的域名/?/install&code=你的code 完成账号绑定

感谢 moeclub 提供的 client_id 和 client_secret,以实现一键绑定

About

Onedrive Directory Index

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%