安装教程

具体的项目地址:https://github.com/qkqpttgf/OneManager-php

OneManager云盘-宝塔安装教程 - 图1

OneManager云盘-宝塔安装教程 - 图2

OneManager云盘-宝塔安装教程 - 图3

OneManager云盘-宝塔安装教程 - 图4

OneManager云盘-宝塔安装教程 - 图5

伪静态代码:

  1. rewrite ^/(.*) /index.php?/$1 last;

OneManager云盘-宝塔安装教程 - 图6

OneManager云盘-宝塔安装教程 - 图7

OneManager云盘-宝塔安装教程 - 图8

OneManager云盘-宝塔安装教程 - 图9

OneManager云盘-宝塔安装教程 - 图10

OneManager云盘-宝塔安装教程 - 图11

OneManager云盘-宝塔安装教程 - 图12

添加OneDrive网盘

OneManager云盘-宝塔安装教程 - 图13

OneManager云盘-宝塔安装教程 - 图14

OneManager云盘-宝塔安装教程 - 图15

OneManager云盘-宝塔安装教程 - 图16

OneManager云盘-宝塔安装教程 - 图17

OneManager云盘-宝塔安装教程 - 图18

OneManager云盘-宝塔安装教程 - 图19

美化教程

隐藏文件夹方法:文件夹重命名,最前面加英文句号.

OneManager云盘-宝塔安装教程 - 图20

OneManager云盘-宝塔安装教程 - 图21

adminloginpage

自定义登录地址,设置后就会隐藏登录按钮(有些主题本来就没有登录按钮),登录时需要手动在网盘地址后加上?你设置的值进行登录。
比如设置为abc,那么你只能通过http://xxx.com/xxx?abc地址来登录 。所以一旦设置就要记住你设置的值,不然连你自己也没法知道登录地址那就麻烦了。
这个设置是为了防止别人通过默认的登录界面尝试登录你的网盘,设置本项后只要猜不到登录界面,即使别人知道登录密码也没用,多一道防护墙,让网盘更安全。

background

自定义背景图片,填入一个图片的url地址,因为图片加载通常需要更多时间,为了速度考虑不建议放入大体积图片。

customCss

设置自定义css的地方,这里设置的css会作用于网盘所有页面。
比如我想隐藏语言选项框:

  1. <style>.changelanguage{display:none}</style>

customScript

设置自定义js,会作用于所有页面。
比如设置http重定向到https:

  1. <script type="text/javascript">
  2. var targetProtocol = "https:";
  3. if (window.location.protocol != targetProtocol)
  4. window.location.href = targetProtocol + window.location.href.substring(window.location.protocol.length);
  5. </script>

customTheme

通过url的方式引用html主题,比如你可以通过设置下面的地址来使用其它的主题。

  1. https://cdn.jsdelivr.net/gh/kizx/onemoe-theme/onemoe.html

disableChangeTheme

设置为1后游客将不显示右下角的主题切换功能。

disableShowThumb

设置为1后将不显示缩略图的按钮和功能,对于云函数用户来说,建议设为1来关闭该功能,因为该功能可能点一下就是一分钱。

hideFunctionalityFile

设置为1后,游客浏览网盘时就会看不到read.md,head.md,head.ofm,foo.omf这些文件,这些文件是干嘛的后面会说。

passfile

设置密码文件名,比如这里设置为password.txt,那么在某一个目录下新建一个password.txt文件,其中写入密码,这样任何人在浏览这个网盘目录时都需要输入相应密码后才能访问。

sitename

设置网站名称。

theme

切换主题。

timezone

设置时区,国内可设置为8。