27 | 28 | 29 |
├── .gitignore ├── README.md ├── cache └── abc ├── config └── README.md ├── controller ├── AdminController.php ├── CommonController.php ├── ImagesController.php ├── IndexController.php └── UploadController.php ├── demo └── demo.png ├── index.php ├── init.php ├── lib ├── Parsedown.php ├── cache.php ├── cache │ ├── filecache_.php │ ├── memcache_.php │ ├── redis_.php │ └── secache_.php ├── fetch.php ├── onedrive.php ├── oneindex.php ├── route.php ├── sqlite.php └── view.php ├── one.php ├── statics ├── common │ ├── offline │ │ ├── css │ │ │ ├── bootstrap-responsive.min.css │ │ │ ├── bootstrap.min.css │ │ │ └── main.css │ │ └── js │ │ │ ├── aria2.js │ │ │ ├── bootstrap.min.js │ │ │ ├── jquery-1.7.2.min.js │ │ │ ├── jquery.Storage.js │ │ │ ├── jquery.base64.min.js │ │ │ ├── jquery.jsonrpc.js │ │ │ ├── mustache.js │ │ │ ├── peerid.js │ │ │ └── yaaw-1.1.js │ └── search │ │ └── js │ │ └── search.js └── themes │ └── nexmoe │ ├── IMG │ └── OneIndexM.svg │ ├── css │ └── forkGh.css │ └── js │ ├── Meting.min.js │ ├── mdui.min.js │ ├── nexmoe.js │ └── personjs.js ├── view ├── admin │ ├── cache.php │ ├── images.php │ ├── install │ │ ├── install_0.php │ │ ├── install_1.php │ │ ├── install_2.php │ │ ├── install_3.php │ │ └── layout.php │ ├── layout.php │ ├── login.php │ ├── offline.php │ ├── setpass.php │ ├── settings.php │ ├── show.php │ └── upload.php ├── common │ ├── offline.php │ ├── search.php │ └── tips.php └── themes │ ├── classic │ ├── 404.php │ ├── layout.php │ └── list.php │ ├── material │ ├── 404.php │ ├── images │ │ ├── index.php │ │ └── layout.php │ ├── layout.php │ ├── list.php │ ├── password.php │ └── show │ │ ├── audio.php │ │ ├── code.php │ │ ├── doc.php │ │ ├── image.php │ │ ├── pdf.php │ │ ├── stream.php │ │ ├── video.php │ │ ├── video2.php │ │ └── video5.php │ └── nexmoe │ ├── 404.php │ ├── images │ ├── index.php │ └── layout.php │ ├── layout.php │ ├── list.php │ ├── password.php │ ├── readme.html │ └── show │ ├── audio.php │ ├── code.php │ ├── doc.php │ ├── image.php │ ├── pdf.php │ ├── stream.php │ ├── video.php │ ├── video2.php │ └── video5.php └── 使用及免责协议.md /.gitignore: -------------------------------------------------------------------------------- 1 | **/.DS_Store 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 简介 2 | 3 | 本项目是基于: 4 | 5 | - Oneindex 6 | 7 | - OneindexN项目地址:https://github.com/xieqifei/OneindexN 8 | 9 | 详细安装教程: 10 | - [基于Onedrive和Server搭建下载站/网盘](https://www.mintimate.cn/2020/09/22/oneindex) 11 | 12 | 教程视频: 13 | - [8分钟利用OneDrive搭建不限速的OneIndex分享网盘](https://www.bilibili.com/video/BV1ph41197aa) 14 | 15 | 16 | 打赏 17 | - 爱发电:[Mintimate的电圈](https://www.afdian.net/@mintimate/plan) 18 | 19 |  20 | 21 | ### 特别注意 22 | OneindexM的默认密码为:**MintimateBlog** 23 | 24 | ## 修改功能: 25 | 26 | ### 后台: 27 | 28 | - 选择安装世纪互联/国际版(如需修改版本,需要删除config文件夹里的文件后重新进入安装程序) 29 | - 指定文件夹/全部文件夹,关闭Readme.md、index.html、head.md渲染(如果开启游客离线上传,可以关闭此路径的渲染,避免游客上传会被渲染的文件。) 30 | 31 | ### 前台 32 | 33 | 以下功能仅支持nexmoe主题 34 | - 搜索功能:全局搜索/当前页过滤 35 | - 文件操作:删除/新建/重命名/剪切/复制/分享等。仅管理员可用 36 | - 文件上传:4M以下的文件在线上传。url远程上传,仅onedrive个人版支持。aria2离线上传,需自行安装在vps上安装aria2并完成相关配置。 37 | - 外部视频播放器播放接口。需要安装对应播放器。 38 | - 管理员登陆后,查看加密文件夹无需密码。 39 | 40 | ## 更新日志 41 | - 2021.12.03:修复PHP7.x查询函数警告问题;修复文件过滤、查询出错问题;修复排序不可用问题;移除Jq、Bootstrap;调整部分UI 42 | - 2021.08.03:修复Cookies循环问题、修复世纪互联版本部分情况不可用问题。 43 | - 2021.07.01:修复因为Onedrive接口更换,而导致的无法部署。 44 | - 2021.06.25:更换重写URL服务器。 45 | 46 | ## 部署网站 47 | 48 | 网站环境尽量使用Nginx或Apache,配合PHP5.7+版本。 49 | 50 | 建议参考文章: 51 |  52 | 53 |
if ($.Storage)
will tell you if the plugin is loaded.
13 | * $.Storage.set("name", "value") - Stores a named value in the data store.
14 | * $.Storage.set({"name1":"value1", "name2":"value2", etc}) - Stores multiple name/value pairs in the data store.
15 | * $.Storage.get("name") - Retrieves the value of the given name from the data store.
16 | * $.Storage.remove("name") - Permanently deletes the name/value pair from the data store.
17 | *
18 | * @author Dave Schindler
19 | *
20 | * Distributed under the MIT License
21 | *
22 | * Copyright (c) 2010 Dave Schindler
23 | *
24 | * Permission is hereby granted, free of charge, to any person obtaining a copy
25 | * of this software and associated documentation files (the "Software"), to deal
26 | * in the Software without restriction, including without limitation the rights
27 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28 | * copies of the Software, and to permit persons to whom the Software is
29 | * furnished to do so, subject to the following conditions:
30 | *
31 | * The above copyright notice and this permission notice shall be included in
32 | * all copies or substantial portions of the Software.
33 | *
34 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
40 | * THE SOFTWARE.
41 | */
42 | (function($) {
43 | // Private data
44 | var isLS=typeof window.localStorage!=='undefined';
45 | // Private functions
46 | function wls(n,v){var c;if(typeof n==="string"&&typeof v==="string"){localStorage[n]=v;return true;}else if(typeof n==="object"&&typeof v==="undefined"){for(c in n){if(n.hasOwnProperty(c)){localStorage[c]=n[c];}}return true;}return false;}
47 | function wc(n,v){var dt,e,c;dt=new Date();dt.setTime(dt.getTime()+31536000000);e="; expires="+dt.toGMTString();if(typeof n==="string"&&typeof v==="string"){document.cookie=n+"="+v+e+"; path=/";return true;}else if(typeof n==="object"&&typeof v==="undefined"){for(c in n) {if(n.hasOwnProperty(c)){document.cookie=c+"="+n[c]+e+"; path=/";}}return true;}return false;}
48 | function rls(n){return localStorage[n];}
49 | function rc(n){var nn, ca, i, c;nn=n+"=";ca=document.cookie.split(';');for(i=0;i
54 | 添加以下命令到crontab
55 | */10 * * * *
56 |
# | 15 |环境需求 | 16 |当前环境 | 17 ||
---|---|---|---|
1 | 22 |PHP > 5.5 | 23 | 24 | | 25 | 26 | | 27 | 28 |
2 | 31 |curl 支持 | 32 | 33 | | 34 | 35 | | 36 | 37 |
3 | 40 |config/ 目录可读可写 | 41 | 42 | | 43 | 44 | | 45 | 46 |
4 | 49 |cache/ 目录可读可写 | 50 | 51 | | 52 | 53 | | 54 | 55 |
Tips | 58 |建议配合Mintimate's Blog文章和视频操作:博客文章、 59 | 视频教程 | 60 |
client_id
和client_secret
,
13 | 根据你的Onedrive供应商选择:
14 | 远程路径 | 41 |上传速度 | 42 |进度 | 43 |状态 | 44 |操作 | 45 |
---|
远程路径 | 97 |状态 | 98 |
---|---|
104 | | 105 | 106 | |
Name | Size | Date Created | Date Modified |
---|---|---|---|
17 | .. 18 | | 19 |20 | | 21 | | |
/ | 27 |28 | | 29 | | |
33 | | 34 | | 35 | |