Coder Social home page Coder Social logo

qkqpttgf / onemanager-php Goto Github PK

View Code? Open in Web Editor NEW
3.7K 44.0 2.7K 3.35 MB

An index & manager of Onedrive based on serverless. Can be deployed to Heroku/Glitch/Vercel/Replit/SCF/FG/FC/CFC/PHP web hosting/VPS.

PHP 47.02% Shell 0.23% HTML 49.12% JavaScript 3.64%
onedrive onemanager scf heroku sharepoint tencent-scf aliyun-fc fc huaweicloud-fg fg

onemanager-php's Introduction

中文readme

NOTICE:

The Releases is used as archive, not newest code.

Please read the descriptions of settings before raising an issue.


Deploy to Vercel

Official

https://vercel.com/

Demo

https://onemanager-php.vercel.app/

Notice

  1. you must wait 30-50s to make sure deploy READY after change config;

  2. Vercel limit 100 deploy every day.

How to Install

https://scfonedrive.github.io/Vercel/Deploy.html .


Deploy to Replit

Official

https://repl.it/
https://replit.com/

Demo

https://onemanager.qkqpttgf.repl.co/

How to Install

A:

  1. Click the "+" or "Create Repl", click the Import from Github;
  2. Input https://github.com/qkqpttgf/OneManager-php in "GitHub URL", then it will auto show "Language" - "PHP Web Server", Click the "Import from Github";
  3. After done, click the green button "Run", it will show the web page on the right, you MUST open it in a new tab or window.

B:

  1. Click the "+" or "Create Repl", find template "PHP Web Server" (via input "php"), input a name for your project in "Title" or left it default, Click the "+ Create Repl".
  2. After done, input git clone https://github.com/qkqpttgf/OneManager-php && mv -b OneManager-php/* ./ && mv -b OneManager-php/.[^.]* ./ && rm -rf *~ && rm -rf OneManager-php to Console or Shell on the right, press "Enter" to run it.
  3. Click the green button "Run", it will show the web page on the right, you MUST open it in a new tab or window.

Deploy to Heroku

Dyno will no longer free

Official

https://heroku.com

Demo

https://herooneindex.herokuapp.com/

How to Install

Click the button Deploy to Deploy a new app("We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy.")

Star this project, then Fork, create an app in Heroku, then turn to the Deploy tab, "Deployment method" via "Connect GitHub", select your github fork.


Deploy to Glitch

Official

https://glitch.com/

Demo

https://onemanager.glitch.me/

How to Install

[New Project] -> [Import form Github] -> paste "https://github.com/qkqpttgf/OneManager-php" , after done, [Show] -> [In a New Window].


Deploy to Tencent Serverless Cloud Function (SCF)

SCF no longer free

Official

https://cloud.tencent.com/product/scf

DEMO

null

How to Install

see CN readme.


Deploy to Huawei cloud Function Graph (FG)

Official

https://console.huaweicloud.com/functiongraph/

DEMO

null

How to Install

see CN readme.


Deploy to Aliyun Function Compute (FC)

Official:

https://fc.console.aliyun.com/

DEMO

null

How to Install

see CN readme.


Deploy to Baidu Cloud Function Compute (CFC)

Official

https://console.bce.baidu.com/cfc/#/cfc/functions

DEMO

null

How to Install

see CN readme.


Deploy to Virtual Private Server (VPS) or php host

DEMO

null

How to Install

  1. Start web service on your server (httpd or other), make sure you can visit it.

  2. Make the rewrite works, the rule is in .htaccess file, make sure any query redirect to index.php.

  3. Upload code.

  4. Change the file .data/config.php can be read&write (666 is suggested).

  5. View the website in chrome or other.


Features

When downloading files, the program produce a direct url, visitor download files from MS OFFICE via the direct url, the server expend a few bandwidth in produce.

When uploading files, the program produce a direct url, visitor upload files to MS OFFICE via the direct url, the server expend a few bandwidth in produce.

The XXX_path in setting is the path in Onedrive, not in url, program will find the path in Onedrive.

LOGO ICON: put your 'favicon.ico' in the path you showed, make sure xxxxx.com/favicon.ico can be visited.

Program will show content of 'readme.md' & 'head.md'.

guest upload path, is a folder that the guest can upload files, but can not be list (exclude admin).

If there is 'index.html' file, program will only show the content of 'index.html', not list the files.

Click 'EditTime' or 'Size', the list will sort by time or size, Click 'File' can resume sort.


Functional files

favicon.ico

put it in the showing home folder of FIRST disk (maybe not root of onedrive).

index.html

show content of index.html as html.

head.md

readme.md

it will showed at top or bottom as markdown.

head.omf

foot.omf

it will showed at top or bottom as html (javascript works!).


A cup of coffee

https://paypal.me/qkqpttgf


Chat

Telegram Group

https://t.me/joinchat/I_RVc0bqxuxlT-d0cO7ozw

onemanager-php's People

Contributors

186526 avatar david082321 avatar exstevens avatar haotian22 avatar hmsjy2017 avatar ifwlzs avatar jssycszyj avatar kizx avatar kobe-koto avatar liblaf avatar lswlc33 avatar msterzhang avatar nchyn avatar qkqpttgf avatar reiyy avatar sansui233 avatar vbill avatar wendaleruan avatar zhullyb 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  avatar  avatar  avatar  avatar  avatar  avatar

onemanager-php's Issues

token报错

当时是改了很多文件名字,上传文件等操作,然后就突然报错了,但是我看了下报错应该和文件的改动没有关系吧,报错如图
image
请问除了重新搞一个SCF之外还有什么办法能及时解决吗?

上传文件问题

文件上传后,会有一个.tmp文件死活删不掉,要进onedrive里面删,在onemanager里删报502。是最近版本才出现的

界面建议

1.首先说一下现在默认界面就已经真心不错
2.因为考虑到手机浏览器横屏像素较少的缘故,能不能新加一个主题是可以把文件名单独一行,然后大小和创建时间放另外一行呢?这样大大避免文件名较长时,被拦腰截断只能在里面慢慢左拉才能全看到的情况,毕竟大部分人首先关心的是文件名。参考weiyun.com上手机显示界面。

加密问题

我想加密一个目录
passfile 设置为admin.txt
然后在目录里面 点击 管理 加密 输入密码为admin.txt 但是没有加密。
还有 缓存可以在宝塔里面设置自动刷新吗?每次要自己点

如何添加评论?

我用了livere和valine这两个第三方的评论插件之后,都会显示{"errorCode":-1,"errorMessage":"Process exited before completing request"},请问这是怎么一回事,多谢

Error

Error
Plase make sure the RewriteEngine is On.

大文件夹报错

我在onedrive里面上传了一个2G左右的文件夹,然后在SCF搭建的浏览端无法打开,每次打开该文件夹都报以下错误

{"errno":403,"error":"Invalid scf response format. please check your scf response format."}

关于文件夹加密

今日出现了这样的状况:输入加密文件夹的密码后,又跳回了密码输入界面(我确定密码是正确的)。在文件夹外的界面重新加密文件夹后恢复正常

change setting for encrypt

Hi, thanks for this project.
can you change the setting for the encrypt index directory to download direct links with no login required? (still need encrypt index to anyone)

能否增加复制当前目录下已选择的文件链接

OD网盘如果是用迅雷等下载软件进行下载速度会快很多,需然程序有复制所有下载链接功能,但有时只需要下载当前目录下部分文件,能否增加复制选择的文件链接或者在每个文件名后的下载图标后面再增加一个复制当前文件链接?

在选择语言后出现 504 Gateway Time-out

流程:

添加 SecretId 和 SecretKey
点击API网关触发器中的访问路径
显示 Error refresh_token not exist, click to install.
点击 click to install
在选择语言界面选择中文,填写管理密码,点击确认

此时,如果把超时时间设为3s,

则显示 {"errorCode":-1,"errorMessage":"Task timed out after 3 seconds"}

如果把超时时间设为5s+,

则显示 504 Gateway Time-out apigw/1.0.16_1.3.3

设置guestup_path后未登录访问该目录有警告提示

在后台guestup_path设置了一个目录,如果在未登录的情况下进入该设置的目录会在页面顶部提示:
Warning: Invalid argument supplied for foreach() in D:\common.php on line 1564
Warning: Invalid argument supplied for foreach() in D:\common.php on line 1583
如果登录后再进入这个目录就没有提示。
common.php文件中以上两行代码相同:
foreach ($files['children'] as $file) {

foot.omf

foot.omf是直接在目录下新建文件?然后输入valine的代码就行了?

图床功能链接问题

图床功能在设置以后可以正常上传图片,但是打开获取到的链接却不能直接查看图片,要下载。
在链接后面要加上 ?preview 才能正常查看图片
但是如果那样会显示程序框架,我想让他直接显示图片,不显示框架
而且默认生成的链接后面不带 ?preview
在手机上打开生成链接会直接下载download.aspx,而不是显示原图或者跳到图片下载
如果不能直接显示原图,能默认在生成链接后面添加 ?preview 吗

502 Bad Gateway nginx

之前用免费的虚拟主机安装很顺利,现在用阿里云装了宝塔,新建网站把源码上传后,点击安装出现502 Bad Gateway,nginx,装oneindex又没问题,请问是php的配置有什么问题吗?

希望能增加评论插件模块

希望可以增加valine评论插件,自己改了代码后作者大大一更新就要重装然后改代码(主要是自己菜,一更新就改不来了),希望可以加入“是否启用valine评论插件”的选项,插件的appid和secret用环境变量在/admin处管理,或者开发一个插件接入模块,像加入新网盘一样,然后以环境变量的形式在管理台下进行对插件进行自定义。

新建函数无法打开

我利用腾讯云函数第一个搭建成功了,之后在同一个账号下搭建了第二个,相同的步骤,但最后的网页无法打开。

Rewrite Engine 重写(伪静态)解释

Platform: VPS/Apache
when I use this .htaccess below

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [L]

This should work, but when installing, it returns a 200 error and does not show the password form.
It seems there are some problem when checking the Rewrite Engine.

完了,咱们的被黑了。

访问时登陆管理输入第一次密码,还有第二次,我的登陆时就出现这个(前提是我没有设置二次密码加密。)
@qkqpttgf你那个站点也有第二次加密

关于lybwb皮肤

请问lybwb皮肤能否加上hide time and size in mobile的特性?

添加 世纪互联的onedrive失败

大佬,我使用的 是 世纪互联的 for stu的账号,
1.使用 自带的绑定方式,登录的网址 显示没有账号不存在。
我通过 世纪互联的https://portal.azure.cn/ 可以登录的。

  1. 我自己申请 microsoft azure应用的话,总是跳出来错误:
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application

请问 ,有解决的办法吗,或者自己 申请应用的话,有相应的教程吗?
谢谢

新建文件夹无法上传文件

问题复现:
管理-新建-文件夹-新建-进入文件夹-上传文件->点上传 无反应

2020-05-07-14-35-07

我在heroku和vps部署都存在这个问题
我现在是先上传到首页,然后再等上传结束移动到目标文件夹,希望可以修复:memeda

假设,云函数被ddos攻击

如题,假设,云函数被ddos攻击。在云函数已经绑定域名的情况下
被攻击的话,会不会导致流量大幅度飙升 然后破产啊

Tenant does not have a SPO license.

按视频教程操作,点击添加OneDrive盘,登录onedrive后跳转,显示
Tenant does not have a SPO license.
image
我应该有这个license。
image

请问如何解决?

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.