An index & manager of Onedrive based on serverless. Can be deployed to Heroku/Glitch/Vercel/Replit/SCF/FG/FC/CFC/PHP web hosting/VPS.
 
 
 
 
Go to file
BingoKingo 6ecfee98e6
Update tfo.html
2023-03-11 17:22:40 +08:00
.data Add platform Glitch 2020-11-06 18:02:03 +08:00
disk BaiduDisk for test 2023-03-03 14:17:42 +08:00
js load marked/md5 js from local 2022-08-19 02:24:16 +00:00
platform build: bump `vercel-php` from 0.5.1 to 0.5.2 2022-10-06 17:25:00 +08:00
theme Update tfo.html 2023-03-11 17:22:40 +08:00
vendor rm not used vendor 2020-08-17 04:51:12 -04:00
.htaccess add nginx rewrite when used in Subdirectory 2021-05-24 17:55:28 +08:00
.replit Create .replit 2021-12-12 18:15:22 +08:00
CFWorkers.js fix bug 2020-10-03 11:28:56 +08:00
CFWorkers_rand.js Create CFWorkers_rand.js 2021-10-28 10:56:24 +08:00
app.json Update app.json 2020-02-01 11:49:46 +08:00
common.php parse index.htm 2023-03-03 15:02:48 +08:00
conststr.php add log in txt 2022-02-18 16:15:12 +08:00
glitch.json Add platform Glitch 2020-11-06 18:02:03 +08:00
index.php fix: if no php-curl, can show error message now 2022-05-15 16:04:04 +08:00
readme.md scf&heroku will no longer free 2022-08-26 09:11:40 +08:00
readme_cn.md SCF&heroku will no longer free 2022-08-26 09:13:41 +08:00
update.sh Update update.sh 2020-11-17 23:22:56 +08:00
version Update version 2022-01-27 12:36:39 +08:00
web.config Add IIS rewrite rule 2020-08-28 10:53:35 +08:00
writeable.sh Add platform Glitch 2020-11-06 18:02:03 +08:00

readme.md

中文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/

Notice

Import from Github useing the .replit file in code files will cause an empty web page, may someone help me?

How to Install

  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 can 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