升级静态文件
parent
699b4451ce
commit
1ccb28e2e9
20
README.md
20
README.md
|
@ -3,13 +3,6 @@
|
||||||
演示地址:[https://png.cm/](https://png.cm/)
|
演示地址:[https://png.cm/](https://png.cm/)
|
||||||
之前一直用的图床程序是:[PHP多图长传程序2.4.3](https://www.jb51.net/codes/40544.html)
|
之前一直用的图床程序是:[PHP多图长传程序2.4.3](https://www.jb51.net/codes/40544.html)
|
||||||
由于版本过老并且使用falsh上传,在当前html5流行大势所趋下,遂利用基础知识新写了一个以html5为默认上传并且支持flash,向下兼容至IE9。
|
由于版本过老并且使用falsh上传,在当前html5流行大势所趋下,遂利用基础知识新写了一个以html5为默认上传并且支持flash,向下兼容至IE9。
|
||||||
>
|
|
||||||
|
|
||||||
[演示](https://png.cm/)
|
|
||||||
[Chrome/Edge 插件](https://github.com/icret/EasyImage-Browser-Extension)
|
|
||||||
[使用手册](https://www.kancloud.cn/easyimage/easyimage/)
|
|
||||||
[问题反馈](https://support.qq.com/products/367633)
|
|
||||||
[QQ群](https://shang.qq.com/wpa/qunwpa?idkey=3feb4e8be8f1839f71e53bf2e876de36afc6889b2630c33c877d8df5a5583a6f)
|
|
||||||
|
|
||||||
[](http://php.net)
|
[](http://php.net)
|
||||||
[](https://github.com/icret/EasyImages2.0/releases)
|
[](https://github.com/icret/EasyImages2.0/releases)
|
||||||
|
@ -18,7 +11,10 @@
|
||||||
[](https://cdn.jsdelivr.net/gh/icret/EasyImages2.0@EasyImage2.0/)
|
[](https://cdn.jsdelivr.net/gh/icret/EasyImages2.0@EasyImage2.0/)
|
||||||
[](https://github.com/icret/EasyImages2.0)
|
[](https://github.com/icret/EasyImages2.0)
|
||||||
[](https://github.com/icret/EasyImages2.0/blob/master/LICENSE)
|
[](https://github.com/icret/EasyImages2.0/blob/master/LICENSE)
|
||||||
|
[](https://qm.qq.com/cgi-bin/qm/qr?k=TmGoIK7BXij_CR3lqZoJZu3_trPwtJ09&jump_from=webapi)
|
||||||
|
|
||||||
|
>[演示](https://png.cm/) | [Chrome/Edge 插件](https://github.com/icret/EasyImage-Browser-Extension) | [使用手册](https://www.kancloud.cn/easyimage/easyimage/)
|
||||||
|
>
|
||||||
>本人善写bug 发现bug可提交 [issues](https://github.com/icret/EasyImages2.0/issues) 追求稳定请下载 [稳定版](https://github.com/icret/EasyImages2.0/releases)
|
>本人善写bug 发现bug可提交 [issues](https://github.com/icret/EasyImages2.0/issues) 追求稳定请下载 [稳定版](https://github.com/icret/EasyImages2.0/releases)
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
|
@ -55,8 +51,8 @@
|
||||||
9. `upload File size exceeds the maximum value` 调整`PHP`上传大小
|
9. `upload File size exceeds the maximum value` 调整`PHP`上传大小
|
||||||
10. `undefined function imagecreatefromwebp()`GD没安装webp, 以此类推
|
10. `undefined function imagecreatefromwebp()`GD没安装webp, 以此类推
|
||||||
11. `Warning: is_dir(): open_basedir restriction in effect`解决方法同`3`
|
11. `Warning: is_dir(): open_basedir restriction in effect`解决方法同`3`
|
||||||
12. 出现`Fatal error: Allowed memory size......`主机内存或分配给PHP的内存不够 解决方法百度
|
12. `Fatal error: Allowed memory size......`主机内存或分配给PHP的内存不够 解决方法百度
|
||||||
13. 如果开启原图保护功后打开图片链接显示`404`是因为`nginx`或`Apache`页面缓存导致的,`Nginx`解决办法:
|
13. 开启原图保护功能后打开图片链接显示`404`是因为`nginx`或`Apache`页面缓存导致的,`Nginx`解决办法:
|
||||||
|
|
||||||
```Nginx
|
```Nginx
|
||||||
# 把Nginx这段配置删掉
|
# 把Nginx这段配置删掉
|
||||||
|
@ -81,7 +77,6 @@ location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
|
||||||
- 备份`config`目录(没有增加上传用户和api可以只保留`config.php`文件)和`上传文件目录`
|
- 备份`config`目录(没有增加上传用户和api可以只保留`config.php`文件)和`上传文件目录`
|
||||||
- 将新程序下载至网站目录解压覆盖,然后将备份的文件替换既完成升级
|
- 将新程序下载至网站目录解压覆盖,然后将备份的文件替换既完成升级
|
||||||
- 如果出现错误请在设置中把所有底部设置点击一次`保存`
|
- 如果出现错误请在设置中把所有底部设置点击一次`保存`
|
||||||
-
|
|
||||||
|
|
||||||
## 安全配置
|
## 安全配置
|
||||||
|
|
||||||
|
@ -116,7 +111,10 @@ $HTTP["url"] =~ "^/(i|public)/" {
|
||||||
|
|
||||||
<details><summary>点击查看2.0版更新日志</summary>
|
<details><summary>点击查看2.0版更新日志</summary>
|
||||||
|
|
||||||
* 2022-3-13 v2.5.6 dev
|
* 2022-3-15 v2.5.7 dev
|
||||||
|
- 检测更改域名改为检测局域网
|
||||||
|
|
||||||
|
* 2022-3-13 v2.5.6
|
||||||
- 修复加密删除后不能正确提示
|
- 修复加密删除后不能正确提示
|
||||||
- 修复webp转换其他格式失败
|
- 修复webp转换其他格式失败
|
||||||
- 修复文字水印透明度不生效
|
- 修复文字水印透明度不生效
|
||||||
|
|
|
@ -290,14 +290,15 @@ if (isset($_GET['recycle_reimg'])) {
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>图片命名方式</label>
|
<label>图片命名方式</label>
|
||||||
<select class="chosen-select form-control" name="imgName">
|
<select class="chosen-select form-control" name="imgName">
|
||||||
<option value="default" <?php if ($config['imgName'] == 'default') echo 'selected'; ?>>默认 - 以上传时间+4位随机数转换为36进制 例: vx77yu</option>
|
<option value="default" <?php if ($config['imgName'] == 'default') echo 'selected'; ?>>默认 - 上传时间+4位随机数的36进制 >> vx77yu</option>
|
||||||
<option value="source" <?php if ($config['imgName'] == 'source') echo 'selected'; ?>>以上传文件名称 例: 微信图片_20211228214754</option>
|
<option value="date" <?php if ($config['imgName'] == 'date') echo 'selected'; ?>>上传时间 >> 192704</option>
|
||||||
<option value="date" <?php if ($config['imgName'] == 'date') echo 'selected'; ?>>以上传时间 例: 192704</option>
|
<option value="crc32" <?php if ($config['imgName'] == 'crc32') echo 'selected'; ?>>CRC32 >> 2495551279</option>
|
||||||
<option value="unix" <?php if ($config['imgName'] == 'unix') echo 'selected'; ?>>以Unix时间 例: 1635074840</option>
|
<option value="unix" <?php if ($config['imgName'] == 'unix') echo 'selected'; ?>>Unix时间 >> 1635074840</option>
|
||||||
<option value="uniqid" <?php if ($config['imgName'] == 'uniqid') echo 'selected'; ?>>基于以微秒计的当前时间 例: 6175436c73418</option>
|
<option value="uniqid" <?php if ($config['imgName'] == 'uniqid') echo 'selected'; ?>>微秒时间 >> 6175436c73418</option>
|
||||||
<option value="guid" <?php if ($config['imgName'] == 'guid') echo 'selected'; ?>>全球唯一标识符 例: 6EDAD0CC-AB0C-4F61-BCCA-05FAD65BF0FA</option>
|
<option value="source" <?php if ($config['imgName'] == 'source') echo 'selected'; ?>>源文件名 >> 微信图片_20211228214754</option>
|
||||||
<option value="md5" <?php if ($config['imgName'] == 'md5') echo 'selected'; ?>>md5加密时间 例: 3888aa69eb321a2b61fcc63520bf6c82</option>
|
<option value="md5" <?php if ($config['imgName'] == 'md5') echo 'selected'; ?>>MD5 >> 3888aa69eb321a2b61fcc63520bf6c82</option>
|
||||||
<option value="sha1" <?php if ($config['imgName'] == 'sha1') echo 'selected'; ?>>sha1加密微秒 例: 654faac01499e0cb5fb0e9d78b21e234c63d842a</option>
|
<option value="sha1" <?php if ($config['imgName'] == 'sha1') echo 'selected'; ?>>SHA1 >> 654faac01499e0cb5fb0e9d78b21e234c63d842a</option>
|
||||||
|
<option value="guid" <?php if ($config['imgName'] == 'guid') echo 'selected'; ?>>全局唯一标识符 >> 6EDAD0CC-AB0C-4F61-BCCA-05FAD65BF0FA</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -818,7 +819,8 @@ if (isset($_GET['recycle_reimg'])) {
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span class="label label-badge label-info">当前版本:<?php echo $config['version']; ?></span>
|
<span class="label label-badge label-info">当前版本:<?php echo $config['version']; ?></span>
|
||||||
<a href="https://github.com/icret/EasyImages2.0/releases" target="_blank"><span class="label label-badge label-success" data-toggle="tooltip" title="更新后删除<p>/admin/logs/verson/</p>文件夹会自动同步版本">最新版本:<?php echo getVersion(); ?></span></a> </p>
|
<a href="https://github.com/icret/EasyImages2.0/releases" target="_blank"><span class="label label-badge label-success" data-toggle="tooltip" title="更新后删除<p>/admin/logs/verson/</p>文件夹会自动同步版本">最新版本:<?php echo getVersion(); ?></span></a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="Content9">
|
<div class="tab-pane fade" id="Content9">
|
||||||
|
|
|
@ -13,16 +13,7 @@ foreach ($expand as $val) {
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 检测是否更改默认域名
|
|
||||||
if (strstr('localhost|127.0.0.1', $_SERVER['HTTP_HOST'])) {
|
|
||||||
echo '
|
|
||||||
<script>
|
|
||||||
new $.zui.Messager("请修改默认域名,可能会导致网站访问异常! ",{
|
|
||||||
type: "black" // 定义颜色主题
|
|
||||||
}).show();
|
|
||||||
</script>
|
|
||||||
';
|
|
||||||
}
|
|
||||||
// 检测是否修改默认密码
|
// 检测是否修改默认密码
|
||||||
if ($config['password'] === 'e6e061838856bf47e1de730719fb2609') {
|
if ($config['password'] === 'e6e061838856bf47e1de730719fb2609') {
|
||||||
echo '
|
echo '
|
||||||
|
@ -34,6 +25,31 @@ if ($config['password'] === 'e6e061838856bf47e1de730719fb2609') {
|
||||||
</script>
|
</script>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// 检测是否更改默认域名
|
||||||
|
if (strstr('localhost|127.0.0.1|192.168.', $_SERVER['HTTP_HOST'])) {
|
||||||
|
echo '
|
||||||
|
<script>
|
||||||
|
new $.zui.Messager("请修改默认域名,可能会导致网站访问异常! ",{
|
||||||
|
type: "black" // 定义颜色主题
|
||||||
|
}).show();
|
||||||
|
</script>
|
||||||
|
';
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
// 检测是否局域网访问
|
||||||
|
if (is_local($config['domain'])) {
|
||||||
|
echo '
|
||||||
|
<script>
|
||||||
|
new $.zui.Messager("当前使用局域网,可能会导致外网访问异常!",{
|
||||||
|
type: "black" // 定义颜色主题
|
||||||
|
}).show();
|
||||||
|
</script>
|
||||||
|
';
|
||||||
|
}
|
||||||
|
|
||||||
// 检测监黄接口是否可以访问
|
// 检测监黄接口是否可以访问
|
||||||
if ($configp['checkImg'] !== 0) {
|
if ($configp['checkImg'] !== 0) {
|
||||||
|
|
||||||
|
|
|
@ -112,34 +112,47 @@ function imgName($source = null)
|
||||||
return trim(com_create_guid(), '{}');
|
return trim(com_create_guid(), '{}');
|
||||||
}
|
}
|
||||||
|
|
||||||
return strtolower(sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535)));
|
return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($config['imgName']) {
|
switch ($config['imgName']) {
|
||||||
case "source": // 以上传文件名称 例:微信图片_20211228214754
|
|
||||||
|
case "source":
|
||||||
|
// 以上传文件名称 例:微信图片_20211228214754
|
||||||
// 过滤非法名称 $source = preg_replace("/\/|\~|\!|\@|\#|\\$|\%|\^|\&|\*|\(|\)|\_|\+|\{|\}|\:|\<|\>|\?|\[|\]|\,|\.|\/|\;|\'|\`|\-|\=|\\\|\|/","",$source);
|
// 过滤非法名称 $source = preg_replace("/\/|\~|\!|\@|\#|\\$|\%|\^|\&|\*|\(|\)|\_|\+|\{|\}|\:|\<|\>|\?|\[|\]|\,|\.|\/|\;|\'|\`|\-|\=|\\\|\|/","",$source);
|
||||||
return $source;
|
return $source;
|
||||||
break;
|
break;
|
||||||
case "date": // 以上传时间 例:192704
|
case "date":
|
||||||
|
// 以上传时间 例:192704
|
||||||
return date("His");
|
return date("His");
|
||||||
break;
|
break;
|
||||||
case "unix": // 以Unix时间 例:1635074840
|
case "unix":
|
||||||
|
// 以Unix时间 例:1635074840
|
||||||
return time();
|
return time();
|
||||||
break;
|
break;
|
||||||
case "uniqid": // 基于以微秒计的当前时间 例:6175436c73418
|
case "uniqid":
|
||||||
|
// 基于以微秒计的当前时间 例:6175436c73418
|
||||||
return uniqid(true);
|
return uniqid(true);
|
||||||
break;
|
break;
|
||||||
case "guid": // 全球唯一标识符 例:6EDAD0CC-AB0C-4F61-BCCA-05FAD65BF0FA
|
case "guid":
|
||||||
|
// 全球唯一标识符 例:6EDAD0CC-AB0C-4F61-BCCA-05FAD65BF0FA
|
||||||
return create_guid();
|
return create_guid();
|
||||||
break;
|
break;
|
||||||
case "md5": // md5加密时间 例:3888aa69eb321a2b61fcc63520bf6c82
|
case "md5":
|
||||||
|
// md5加密时间 例:3888aa69eb321a2b61fcc63520bf6c82
|
||||||
return md5(microtime());
|
return md5(microtime());
|
||||||
break;
|
break;
|
||||||
case "sha1": // sha1加密微秒 例:654faac01499e0cb5fb0e9d78b21e234c63d842a
|
case "sha1":
|
||||||
|
// sha1加密微秒 例:654faac01499e0cb5fb0e9d78b21e234c63d842a
|
||||||
return sha1(microtime());
|
return sha1(microtime());
|
||||||
break;
|
break;
|
||||||
|
case "crc32":
|
||||||
|
// crc32加密微秒 例:2495551279
|
||||||
|
return crc32(microtime());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return base_convert(date('His') . mt_rand(1001, 9999), 10, 36); // 将上传时间+随机数转换为36进制 例:vx77yu
|
// 将上传时间+随机数转换为36进制 例:vx77yu
|
||||||
|
return base_convert(date('His') . mt_rand(1001, 9999), 10, 36);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1163,8 +1176,23 @@ function isWebpAnimated($src)
|
||||||
// animated
|
// animated
|
||||||
$isAnimated = true;
|
$isAnimated = true;
|
||||||
} else {
|
} else {
|
||||||
// non animated
|
// not animated
|
||||||
$isAnimated = false;
|
$isAnimated = false;
|
||||||
}
|
}
|
||||||
return $isAnimated;
|
return $isAnimated;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据URL判断是否本地局域网访问(PHP代码函数)
|
||||||
|
* https://blog.csdn.net/monxinmonxin0/article/details/44854383
|
||||||
|
* @param $url 要判断的网址
|
||||||
|
* @return bool 是|否
|
||||||
|
*/
|
||||||
|
function is_local($url)
|
||||||
|
{
|
||||||
|
if (stristr($url, 'localhost') || stristr($url, '127.') || stristr($url, '192.')) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -73,12 +73,12 @@
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
|
box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
|
||||||
border-radius: 10px;
|
border-radius: 5px 5px 5px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.6s;
|
transition: all 0.8s;
|
||||||
}
|
}
|
||||||
|
|
||||||
img:hover {
|
img:hover {
|
||||||
|
@ -90,9 +90,8 @@
|
||||||
.bottom-bar {
|
.bottom-bar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
bottom: -4px;
|
||||||
bottom: 0px;
|
background-color: rgba(0, 0, 0, 0.4);
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="row" style="margin-bottom:100px">
|
<div class="row" style="margin-bottom:100px">
|
||||||
|
|
|
@ -48,7 +48,7 @@ Thumb::show($src, $w, $h);
|
||||||
require_once __DIR__ . '/function.php';
|
require_once __DIR__ . '/function.php';
|
||||||
// 中文翻译 https://my.oschina.net/whrlmc/blog/81739
|
// 中文翻译 https://my.oschina.net/whrlmc/blog/81739
|
||||||
define('LOCAL_FILE_BASE_DIRECTORY', APP_ROOT);
|
define('LOCAL_FILE_BASE_DIRECTORY', APP_ROOT);
|
||||||
define('MEMORY_LIMIT', '128M');
|
define('MEMORY_LIMIT', '256M');
|
||||||
define('DEFAULT_WIDTH', 258);
|
define('DEFAULT_WIDTH', 258);
|
||||||
define('DEFAULT_HEIGHT', 258);
|
define('DEFAULT_HEIGHT', 258);
|
||||||
define('FILE_CACHE_PREFIX', 'EasyImage');
|
define('FILE_CACHE_PREFIX', 'EasyImage');
|
||||||
|
@ -60,10 +60,10 @@ define('FILE_CACHE_DIRECTORY', APP_ROOT . $config['path'] . 'thumbnails');
|
||||||
define('NOT_FOUND_IMAGE', $config['imgurl'] . '/public/images/404.png');
|
define('NOT_FOUND_IMAGE', $config['imgurl'] . '/public/images/404.png');
|
||||||
define('ERROR_IMAGE', $config['imgurl'] . '/public/images/404.png');
|
define('ERROR_IMAGE', $config['imgurl'] . '/public/images/404.png');
|
||||||
define('DISPLAY_ERROR_MESSAGES', false);
|
define('DISPLAY_ERROR_MESSAGES', false);
|
||||||
define('MAX_FILE_SIZE', 10485760); // 10 Megs 是 10485760。这是我们将处理的最大内部或外部文件大小。
|
define('MAX_FILE_SIZE', 10485760); // 10 Megs 是 10485760。这是我们将处理的最大内部或外部文件大小。
|
||||||
define('FILE_CACHE_TIME_BETWEEN_CLEANS', 86400); // 多久清理一次缓存
|
define('FILE_CACHE_TIME_BETWEEN_CLEANS', 86400); // 多久清理一次缓存
|
||||||
define('FILE_CACHE_MAX_FILE_AGE', 86400); // 文件必须从缓存中删除多长时间
|
define('FILE_CACHE_MAX_FILE_AGE', 86400); // 文件必须从缓存中删除多长时间
|
||||||
define('BROWSER_CACHE_MAX_AGE', 864000); // 浏览器缓存时间
|
define('BROWSER_CACHE_MAX_AGE', 864000); // 浏览器缓存时间
|
||||||
|
|
||||||
global $ALLOWED_SITES;
|
global $ALLOWED_SITES;
|
||||||
$ALLOWED_SITES = array(
|
$ALLOWED_SITES = array(
|
||||||
|
|
|
@ -1,52 +1,52 @@
|
||||||
<?php
|
<?php
|
||||||
$config=Array
|
$config=Array
|
||||||
(
|
(
|
||||||
'title'=>'简单图床 - EasyImage',
|
'title'=>'简单图床 - EasyImage',
|
||||||
'keywords'=>'简单图床,easyimage,无数据库图床,PHP多图长传程序,自适应页面,HTML5,markdown,bbscode,一键复制',
|
'keywords'=>'简单图床,easyimage,无数据库图床,PHP多图长传程序,自适应页面,HTML5,markdown,bbscode,一键复制',
|
||||||
'description'=>'简单图床EasyImage是一款支持多文件上传的无数据库图床,可以完美替代PHP多图上传程序,最新html5自适应页面兼容手机电脑,上传后返回图片直链,markdown图片,论坛贴图bbscode链接,简单方便支持一键复制,支持多域名,api上传。',
|
'description'=>'简单图床EasyImage是一款支持多文件上传的无数据库图床,可以完美替代PHP多图上传程序,最新html5自适应页面兼容手机电脑,上传后返回图片直链,markdown图片,论坛贴图bbscode链接,简单方便支持一键复制,支持多域名,api上传',
|
||||||
'tips'=>'<a><li class="icon icon-bullhorn text-muted"> 单文件≤10M,单次上传≤30张</li></a>
|
'tips'=>'<a><li class="icon icon-bullhorn text-muted">单文件≤10M,单次上传≤30张</li></a>
|
||||||
<a href="https://github.com/icret/EasyImages2.0" target="_black"><i class="icon icon-heart"> 简单图床是一款开源图床, 支持多文件上传无数据库</i></a>
|
<a href="https://github.com/icret/EasyImages2.0" target="_black"><i class="icon icon-heart"> 简单图床是一款开源图床, 支持多文件上传无数据库</i></a>
|
||||||
<a href="https://github.com/icret/EasyImages2.0" target="_black"><i class="icon icon-github"> 如果你喜欢这种图床风格就下载喔 (๑•̀ㅂ•́)و✧</i></a>',
|
<a href="https://github.com/icret/EasyImages2.0" target="_black"><i class="icon icon-github"> 如果你喜欢这种图床风格就下载喔 (๑•̀ㅂ•́)و✧</i></a>',
|
||||||
'domain'=>'http://127.0.0.1',
|
'domain'=>'http://127.0.0.1',
|
||||||
'imgurl'=>'http://127.0.0.1',
|
'imgurl'=>'http://127.0.0.1',
|
||||||
'user'=>'admin',
|
'user'=>'admin',
|
||||||
'password'=>'e6e061838856bf47e1de730719fb2609',
|
'password'=>'e6e061838856bf47e1de730719fb2609',
|
||||||
'mustLogin'=>0,
|
'mustLogin'=>0,
|
||||||
'apiStatus'=>0,
|
'apiStatus'=>0,
|
||||||
'path'=>'/i/',
|
'path'=>'/i/',
|
||||||
'imgName'=>'default',
|
'imgName'=>'default',
|
||||||
'maxSize'=>10485760,
|
'maxSize'=>10485760,
|
||||||
'maxUploadFiles'=>100,
|
'maxUploadFiles'=>100,
|
||||||
'watermark'=>0,
|
'watermark'=>0,
|
||||||
'waterText'=>'简单图床 - png.cm',
|
'waterText'=>'简单图床 - png.cm',
|
||||||
'waterPosition'=>5,
|
'waterPosition'=>5,
|
||||||
'textColor'=>'rgba(0,255,0,0.5)',
|
'textColor'=>'rgba(0,255,0,0.5)',
|
||||||
'textSize'=>50,
|
'textSize'=>50,
|
||||||
'textFont'=>'/public/static/hkxzy.ttf',
|
'textFont'=>'/public/static/hkxzy.ttf',
|
||||||
'waterImg'=>'/public/images/watermark.png',
|
'waterImg'=>'/public/images/watermark.png',
|
||||||
'extensions'=>'gif,jpeg,png,tif,bmp,tif,svg,webp,jpg,tga,svg,ico',
|
'extensions'=>'gif,jpeg,png,tif,bmp,tif,svg,webp,jpg,tga,svg,ico',
|
||||||
'compress'=>0,
|
'compress'=>0,
|
||||||
'compress_ratio'=>80,
|
'compress_ratio'=>80,
|
||||||
'thumbnail'=>1,
|
'thumbnail'=>1,
|
||||||
'imgConvert'=>'',
|
'imgConvert'=>'',
|
||||||
'maxWidth'=>10240,
|
'maxWidth'=>10240,
|
||||||
'maxHeight'=>10240,
|
'maxHeight'=>10240,
|
||||||
'minWidth'=>5,
|
'minWidth'=>5,
|
||||||
'minHeight'=>5,
|
'minHeight'=>5,
|
||||||
'imgRatio'=>0,
|
'imgRatio'=>0,
|
||||||
'image_x'=>0,
|
'image_x'=>0,
|
||||||
'image_y'=>0,
|
'image_y'=>0,
|
||||||
'imgRatio_quality'=>80,
|
'imgRatio_quality'=>80,
|
||||||
'imgRatio_crop'=>0,
|
'imgRatio_crop'=>0,
|
||||||
'imgRatio_preserve_headers'=>1,
|
'imgRatio_preserve_headers'=>1,
|
||||||
'static_cdn'=>0,
|
'static_cdn'=>0,
|
||||||
'theme'=>'default',
|
'theme'=>'default',
|
||||||
'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0@2.5.6',
|
'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0@2.5.6',
|
||||||
'TinyPng_key'=>'',
|
'TinyPng_key'=>'',
|
||||||
'checkImg'=>0,
|
'checkImg'=>0,
|
||||||
'checkImg_value'=>50,
|
'checkImg_value'=>50,
|
||||||
'moderatecontent_key'=>'',
|
'moderatecontent_key'=>'',
|
||||||
'nsfwjs_url'=>'',
|
'nsfwjs_url'=>'',
|
||||||
'footer'=>'<a href="/admin/terms.php" target="_blank">请勿上传违反中国政策的图片</a>
|
'footer'=>'<a href="/admin/terms.php" target="_blank">请勿上传违反中国政策的图片</a>
|
||||||
<script>
|
<script>
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
|
@ -56,51 +56,51 @@ var _hmt = _hmt || [];
|
||||||
var s = document.getElementsByTagName("script")[0];
|
var s = document.getElementsByTagName("script")[0];
|
||||||
s.parentNode.insertBefore(hm, s);
|
s.parentNode.insertBefore(hm, s);
|
||||||
})();
|
})();
|
||||||
</script>',
|
</script>',
|
||||||
'ad_top'=>0,
|
'ad_top'=>0,
|
||||||
'ad_top_info'=>' <!--广告 按照这个范例替换相应链接,如果想多几个广告,就多复制几个-->
|
'ad_top_info'=>' <!--广告 按照这个范例替换相应链接,如果想多几个广告,就多复制几个-->
|
||||||
<div class="col-md-12" style="text-align: center;margin:2px;">
|
<div class="col-md-12" style="text-align: center;margin:2px;">
|
||||||
<a href="https://app.cloudcone.com.cn/?ref=3521" target="_blank"><img src="/public/images/EasyImage2.0.png" /></a>
|
<a href="https://app.cloudcone.com.cn/?ref=3521" target="_blank"><img src="/public/images/EasyImage2.0.png" /></a>
|
||||||
</div>',
|
</div>',
|
||||||
'ad_bot'=>0,
|
'ad_bot'=>0,
|
||||||
'ad_bot_info'=>'<div class="col-md-12" style="text-align: center;padding:12px 0 110px 0;">
|
'ad_bot_info'=>'<div class="col-md-12" style="text-align: center;padding:12px 0 110px 0;">
|
||||||
<a href="../public/images/wechat.jpg" alt="您的赞美是我开发的动力!" data-toggle="lightbox" class="btn btn-mini" style="color:#329d38;" data-lightbox-group="group1644998953432"><i class="icon icon-wechat"></i> 打赏作者</a>
|
<a href="../public/images/wechat.jpg" alt="您的赞美是我开发的动力!" data-toggle="lightbox" class="btn btn-mini" style="color:#329d38;" data-lightbox-group="group1644998953432"><i class="icon icon-wechat"></i> 打赏作者</a>
|
||||||
<a href="../public/images/alipay.jpg" alt="您的赞美是我开发的动力!" data-toggle="lightbox" class="btn btn-mini" style="color:#1970fc;" data-lightbox-group="group1644998953432"><i class="icon icon-zhifubao"></i> 打赏作者</a>
|
<a href="../public/images/alipay.jpg" alt="您的赞美是我开发的动力!" data-toggle="lightbox" class="btn btn-mini" style="color:#1970fc;" data-lightbox-group="group1644998953432"><i class="icon icon-zhifubao"></i> 打赏作者</a>
|
||||||
</div>',
|
</div>',
|
||||||
'showSwitch'=>1,
|
'showSwitch'=>1,
|
||||||
'showSort'=>1,
|
'showSort'=>1,
|
||||||
'listNumber'=>20,
|
'listNumber'=>20,
|
||||||
'customize'=>'',
|
'customize'=>'',
|
||||||
'checkEnv'=>1,
|
'checkEnv'=>1,
|
||||||
'upload_logs'=>1,
|
'upload_logs'=>1,
|
||||||
'cache_freq'=>2,
|
'cache_freq'=>2,
|
||||||
'upload_first_show'=>1,
|
'upload_first_show'=>1,
|
||||||
'show_user_hash_del'=>1,
|
'show_user_hash_del'=>1,
|
||||||
'show_exif_info'=>1,
|
'show_exif_info'=>1,
|
||||||
'chart_on'=>1,
|
'chart_on'=>1,
|
||||||
'check_ip'=>0,
|
'check_ip'=>0,
|
||||||
'check_ip_model'=>0,
|
'check_ip_model'=>0,
|
||||||
'check_ip_list'=>'',
|
'check_ip_list'=>'',
|
||||||
'public'=>0,
|
'public'=>0,
|
||||||
'public_list'=>Array
|
'public_list'=>Array
|
||||||
(
|
(
|
||||||
0=>'time',
|
0=>'time',
|
||||||
1=>'today',
|
1=>'today',
|
||||||
2=>'yesterday',
|
2=>'yesterday',
|
||||||
3=>'total_space',
|
3=>'total_space',
|
||||||
4=>'used_space',
|
4=>'used_space',
|
||||||
5=>'free_space',
|
5=>'free_space',
|
||||||
6=>'image_used',
|
6=>'image_used',
|
||||||
7=>'file',
|
7=>'file',
|
||||||
8=>'dir',
|
8=>'dir',
|
||||||
9=>'month'
|
9=>'month'
|
||||||
),
|
),
|
||||||
'language'=>0,
|
'language'=>0,
|
||||||
'image_recycl'=>1,
|
'image_recycl'=>1,
|
||||||
'delDir'=>'thumbnails/',
|
'delDir'=>'thumbnails/',
|
||||||
'hide'=>0,
|
'hide'=>0,
|
||||||
'version'=>'2.5.6',
|
'version'=>'2.5.6',
|
||||||
'update'=>'2022-03-14 17:48:22',
|
'update'=>'2022-03-16 01:57:25',
|
||||||
'terms'=>'<div class="container">
|
'terms'=>'<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-3">
|
<div class="col-xs-3">
|
||||||
|
@ -184,5 +184,5 @@ var _hmt = _hmt || [];
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>'
|
</div>'
|
||||||
);
|
);
|
Loading…
Reference in New Issue