imgurl/README.md

49 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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)
### 联系我
* Blog[https://www.xiaoz.me/](https://www.xiaoz.me/)
* QQ:337003006
### 鸣谢
* 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)