GithubHelp home page GithubHelp logo

jialezi666 / autopiccdn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yumusb/autopiccdn

0.0 0.0 0.0 232 KB

Home Page: http://pic.i5.gs/

HTML 28.41% PHP 23.02% TSQL 6.09% CSS 15.39% JavaScript 27.09%

autopiccdn's Introduction

autoPicCdn

白嫖Github的存储空间,通过jsdelivr全球加速(含有国内节点). 实现图床的目的.

目录介绍:

.
├── index.html # 前端首页
├── pic.sql # SQL语句用以创建数据表
├── README.md 
├── static # 静态文件夹
└── up.php #接口文件


使用:

配置选项

https://github.com/settings/tokens 去这个页面生成一个有写权限的token(repo:Full control of private repositories 和write:packages前打勾)然后配置up.php中的相关字段..

define("REPO","testforapi");//必须是下面用户名下的公开仓库
define("USER","yumusb");//必须是当前GitHub用户名
define("MAIL","[email protected]");//
define("TOKEN","YourToken");
## 数据库配置(添加了统计上传文件功能,使用mysql存储)
$database = array(
  	'dbname' => 'pic',
  	'host' => 'localhost',
  	'port' => 3306,
  	'user' => 'pic',
  	'pass' => '123456',
  );
$table = 'remote_imgs'; //存放数据表名字

就可以享受白嫖带来的乐趣了!

更新记录:

  • 2020.04.21 优化交互提示,添加粘贴板上传(Chrome)。
  • 2020.04.21 换了一套前端,同时支持数据库记录文件Md5,相同md5文件第二次上传会直接从数据库调用。
  • 2020.03.27 重写交互方式,且现已支持PicGo中的web-uploader插件(Zqian),配置API地址就写up.php的地址,POST参数填写pic

如果有帮助到你 欢迎赞赏 http://33.al/donate

autopiccdn's People

Contributors

yumusb avatar

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.