Skip to content

Commit

Permalink
LightPicture
Browse files Browse the repository at this point in the history
  • Loading branch information
osuuu committed Jan 16, 2022
0 parents commit e738ab6
Show file tree
Hide file tree
Showing 1,419 changed files with 180,770 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.idea
/.vscode
*.log
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
sudo: false

language: php

branches:
only:
- stable

cache:
directories:
- $HOME/.composer/cache

before_install:
- composer self-update

install:
- composer install --no-dev --no-interaction --ignore-platform-reqs
- zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Core.zip .
- composer require --update-no-dev --no-interaction "topthink/think-image:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-migration:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-captcha:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-mongo:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-worker:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-helper:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-queue:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-angular:^1.0"
- composer require --dev --update-no-dev --no-interaction "topthink/think-testing:^1.0"
- zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Full.zip .

script:
- php think unit

deploy:
provider: releases
api_key:
secure: TSF6bnl2JYN72UQOORAJYL+CqIryP2gHVKt6grfveQ7d9rleAEoxlq6PWxbvTI4jZ5nrPpUcBUpWIJHNgVcs+bzLFtyh5THaLqm39uCgBbrW7M8rI26L8sBh/6nsdtGgdeQrO/cLu31QoTzbwuz1WfAVoCdCkOSZeXyT/CclH99qV6RYyQYqaD2wpRjrhA5O4fSsEkiPVuk0GaOogFlrQHx+C+lHnf6pa1KxEoN1A0UxxVfGX6K4y5g4WQDO5zT4bLeubkWOXK0G51XSvACDOZVIyLdjApaOFTwamPcD3S1tfvuxRWWvsCD5ljFvb2kSmx5BIBNwN80MzuBmrGIC27XLGOxyMerwKxB6DskNUO9PflKHDPI61DRq0FTy1fv70SFMSiAtUv9aJRT41NQh9iJJ0vC8dl+xcxrWIjU1GG6+l/ZcRqVx9V1VuGQsLKndGhja7SQ+X1slHl76fRq223sMOql7MFCd0vvvxVQ2V39CcFKao/LB1aPH3VhODDEyxwx6aXoTznvC/QPepgWsHOWQzKj9ftsgDbsNiyFlXL4cu8DWUty6rQy8zT2b4O8b1xjcwSUCsy+auEjBamzQkMJFNlZAIUrukL/NbUhQU37TAbwsFyz7X0E/u/VMle/nBCNAzgkMwAUjiHM6FqrKKBRWFbPrSIixjfjkCnrMEPw=
file:
- ThinkPHP_Core.zip
- ThinkPHP_Full.zip
skip_cleanup: true
on:
tags: true
32 changes: 32 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

ThinkPHP遵循Apache2开源协议发布,并提供免费使用。
版权所有Copyright © 2006-2016 by ThinkPHP (http://thinkphp.cn)
All rights reserved。
ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。

Apache Licence是著名的非盈利开源组织Apache采用的协议。
该协议和BSD类似,鼓励代码共享和尊重原作者的著作权,
允许代码修改,再作为开源或商业软件发布。需要满足
的条件:
1. 需要给代码的用户一份Apache Licence ;
2. 如果你修改了代码,需要在被修改的文件中说明;
3. 在延伸的代码中(修改和有源代码衍生的代码中)需要
带有原来代码中的协议,商标,专利声明和其他原来作者规
定需要包含的说明;
4. 如果再发布的产品中包含一个Notice文件,则在Notice文
件中需要带有本协议内容。你可以在Notice中增加自己的
许可,但不可以表现为对Apache Licence构成更改。
具体的协议参考:http://www.apache.org/licenses/LICENSE-2.0

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
110 changes: 110 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@


<p><a href="http://picture.h234.cn"><img align="right" width="400" src="http://res.eemu.cn/LightPicture/2022/01/1899c1ba43e06c7d.jpg" alt="LightPicture"/></a></p>


<<<<<<< HEAD
=======

>>>>>>> b4ed8fcb76f5349ea61c2da20be8f01185b301c4
<h2>LightPicture - 企业/团队图床系统</h2>
☁ 使用thinkphp+vue开发,前后端分离;本仓库为完整版程序,下载安装即可使用;如需vue前端代码请<a href="https://github.com/osuuu/LightPicture-vue">点此查看</a>


*****

[官网](http://picture.h234.cn) &nbsp; - &nbsp; [演示](#) &nbsp; - &nbsp;[捕风阁](https://www.osuu.net) &nbsp;

*****
> ### 程序功能
* 支持第三方云储存,本地、阿里云 OSS、腾讯云 COS、七牛云
* 支持多桶储存,可同时添加多个对象存储桶管理
* 多图上传、拖拽上传、粘贴上传、上传预览、全屏预览、一键复制图片外链
* 多用户管理、分组管理;不同分组用户控制不同的存储桶
* 完整的权限控制功能,不同用户组可分配不同的操作权限,控制其上传删除及查看
* 完整的可视化日志功能,记录用户所有操作,方便事件溯源
* 全局配置用户初始剩余储存空间、设置指定用户剩余储存空间
* 支持接口上传、接口删除
* 原创Geek扁平化页面风格,简约大气;前端使用vue开发,前后端分离


*****
> ### 安装要求
* PHP 版本 &ge; 7.2
* Mysql版本 &ge; 5.5
* PDO 拓展
* fileinfo 拓展
* curl 拓展
*****
> ### 安装教程
1. 下载LightPicture,上传至 web 运行环境,解压。
2. 设置运行目录为 public。
3. 配置网站默认文档:
~~~
index.html
index.php
~~~

4. 配置 Rewrite 规则为:thinkphp
#### \[ Apache \]

~~~
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
~~~
### \[ Nginx\]

~~~
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
~~~

5. 访问 域名/install,根据页面提示安装。
6. 安装完成后默认 账号为admin 密码123456

注:完成后若开启前台注册请登录管理员账号配置发信邮箱
*****
> ### 联系我
- Email: [email protected]
*****
> ### 捐赠/打赏
如果您认可我的作品,并且觉得对你有所帮助我愿意接受来自各方面的捐赠
<table width="100%">
<tr>
<th>支付宝</th>
<th>微信</th>
</tr>
<tr>
<td><img src="http://res.eemu.cn/LightPicture/2022/01/4a5b497dd9f1894b.jpeg"></td>
<td><img src="http://res.eemu.cn/LightPicture/2022/01/41b8637a113c92b1.jpeg"></td>
</tr>
</table>


*****
> ### 鸣谢
- ThinkPHP
- Vue
- iviewUI
- Iconfont
- viewer.js
创作之初灵感来源于lsky-pro,特此感谢

*****
### 开源许可
[GPL 3.0](https://opensource.org/licenses/GPL-3.0)

Copyright (c) 2022 [LightPicture](http://picture.h234.cn).



1 change: 1 addition & 0 deletions app/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deny from all
22 changes: 22 additions & 0 deletions app/AppService.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
declare (strict_types = 1);

namespace app;

use think\Service;

/**
* 应用服务类
*/
class AppService extends Service
{
public function register()
{
// 服务注册
}

public function boot()
{
// 服务启动
}
}
Loading

0 comments on commit e738ab6

Please sign in to comment.