ImgURL是一个简单、纯粹的图床程序,让个人图床多一个选择。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# ImgURL
|
|
|
|
ImgURL是一款简单、纯粹的图床程序,使用PHP + SQLite 3开发,不需要复杂的配置,做到开箱即用。
|
|
|
|
|
|
|
|
### 环境要求
|
|
|
|
* PHP >= 5.6
|
|
|
|
* 需要exif函数支持
|
|
|
|
* SQLite 3
|
|
|
|
|
|
|
|
### 开发计划
|
|
|
|
- [x] 图片上传与预览
|
|
|
|
- [x] 一键生成链接
|
|
|
|
- [x] 浏览与删除图片
|
|
|
|
- [x] 限制访客上传数量
|
|
|
|
- [x] 图片压缩
|
|
|
|
- [x] 图片鉴黄
|
|
|
|
- [ ] 图片水印
|
|
|
|
- [ ] API上传
|
|
|
|
|
|
|
|
### 安装
|
|
|
|
* 访问:<a href = "https://github.com/helloxz/imgurl/archive/master.zip" target = "_blank" rel = "nofollow">master.zip</a>下载最新版ImgURL程序,放到您的站点根目录并解压。
|
|
|
|
* 访问`http(s)://domain.com/check.php`获取配置信息,并记录下来。
|
|
|
|
* 修改`config.php`设置你自己的域名和密码,访问 `http(s)://domain.com/` 即可,就是这么简单。
|
|
|
|
* 更多设置请参考帮助文档:[https://doc.xiaoz.me/docs/imgurl](https://doc.xiaoz.me/docs/imgurl)
|
|
|
|
|
|
|
|
|
|
|
|
### 安全设置
|
|
|
|
* 配置完毕后测试功能没问题,请删除根目录的`check.php`
|
|
|
|
* Apache默认已经通过`.htaccess`文件来屏蔽数据库下载
|
|
|
|
* Nginx用户请在server段内添加如下配置,并重启Nginx
|
|
|
|
```
|
|
|
|
location ~* \.(db3)$ {
|
|
|
|
deny all;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Demo
|
|
|
|
* [http://test.imgurl.org/](http://test.imgurl.org/) ,账号:`xiaoz`,密码:`xiaoz.me`
|
|
|
|
|
|
|
|
![](https://imgurl.org/upload/1804/3ccc55eeb47965c3.png)
|
|
|
|
|
|
|
|
### 获取捐赠版
|
|
|
|
ImgURL普通版和捐赠版功能上没有任何区别,不过您可以请xiaoz喝一杯咖啡或吃一顿午餐即可获得捐赠版。描下方二维码获取,并在付款说明填写您的网址。
|
|
|
|
|
|
|
|
![](https://imgurl.org/upload/1712/cb349aa4a1b95997.png)
|
|
|
|
|
|
|
|
#### 捐赠版说明
|
|
|
|
* 可提供首次安装及调试
|
|
|
|
* 可去除底部版权
|
|
|
|
|
|
|
|
#### 捐赠列表
|
|
|
|
* 2018-05-02 lackk.com 捐赠30元
|
|
|
|
|
|
|
|
### 鸣谢
|
|
|
|
ImgURL的诞生离不开以下开源项目。
|
|
|
|
|
|
|
|
* LayUI: [https://github.com/sentsin/layui](https://github.com/sentsin/layui)
|
|
|
|
* class.upload.php: [https://github.com/verot/class.upload.php](https://github.com/verot/class.upload.php)
|
|
|
|
* clipBoard.js: [https://github.com/baixuexiyang/clipBoard.js](https://github.com/baixuexiyang/clipBoard.js)
|
|
|
|
|
|
|
|
### 联系我
|
|
|
|
* Blog:[https://www.xiaoz.me/](https://www.xiaoz.me/)
|
|
|
|
* QQ:337003006
|