mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-01-08 11:58:03 +08:00
v2.8.0
This commit is contained in:
parent
2e045d3f46
commit
2b78340111
@ -593,7 +593,7 @@ auto_delete(); //定时删除
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">天数</span>
|
||||
<input type="number" name="auto_delete" class="form-control" min="1" placeholder="0" value="<?php echo $config['auto_delete']; ?>" required="required">
|
||||
<input type="number" name="auto_delete" class="form-control" min="0" placeholder="0" value="<?php echo $config['auto_delete']; ?>" required="required">
|
||||
<span class="input-group-btn"><button class="btn btn-primary">设置</button></span>
|
||||
</div>
|
||||
<input type="hidden" class="form-control" name="update" value="<?php echo date("Y-m-d H:i:s"); ?>" placeholder="隐藏的保存">
|
||||
|
@ -22,7 +22,7 @@ if (isset($_GET['dw'])) {
|
||||
}
|
||||
|
||||
// 历史上传记录的路径
|
||||
if (isset(($_GET['history']))) {
|
||||
if (isset($_GET['history'])) {
|
||||
$dw = '../' . $_GET['history'];
|
||||
if ($config['hide_path']) {
|
||||
$dw = '../' . $config['path'] . $_GET['history'];
|
||||
|
@ -1596,7 +1596,7 @@ function write_upload_logs($filePath, $sourceName, $absolutePath, $fileSize, $fr
|
||||
* IP地址查询
|
||||
* @param int $ip IP地址
|
||||
*/
|
||||
function ip2region(String $IP)
|
||||
function ip2region($IP)
|
||||
{
|
||||
$db = __DIR__ . '/ip2region/ip2region.xdb';
|
||||
|
||||
|
14
docs/_coverpage.md
Normal file
14
docs/_coverpage.md
Normal file
@ -0,0 +1,14 @@
|
||||
<!-- 封面 -->
|
||||
|
||||
<!-- ![logo](../public/images/image_icon_153794.png) -->
|
||||
# EasyImage <small>2.0</small>
|
||||
|
||||
> 简单图床 - 无数据库的图床程序
|
||||
|
||||
- 始于2018年7月,支持多文件上传,功能强大
|
||||
- 本程序对于环境要求极低
|
||||
|
||||
[GitHub](https://github.com/icret/EasyImages2.0)
|
||||
[DEMO](https://png.cm/)
|
||||
|
||||
<!-- ![color](#f1939c) -->
|
3
docs/_navbar.md
Normal file
3
docs/_navbar.md
Normal file
@ -0,0 +1,3 @@
|
||||
<!-- 顶部导航 -->
|
||||
<!-- * [DEMO](https://png.cm/) -->
|
||||
<!-- * [GitHub](https://github.com/icret/EasyImages2.0) -->
|
@ -4,10 +4,15 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta name="force-rendering" content="webkit" />
|
||||
<meta name="author" content="Icret EasyImage2.0">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<meta charset="UTF-8" />
|
||||
<link href="https://cdn.bootcdn.net/ajax/libs/docsify/4.13.0/themes/vue.min.css" rel="stylesheet">
|
||||
<title>EasyImage2.0 简单图床</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="../favicon.ico" />
|
||||
<link href="//cdn.bootcdn.net/ajax/libs/docsify/4.13.0/themes/vue.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@ -22,6 +27,8 @@
|
||||
subMaxLevel: 1, //侧边栏层级最大层级2
|
||||
loadNavbar: true, //加载导航栏 需要编写_navbar.md
|
||||
autoHeader: true, //配合loadSidebar 自动添加标题
|
||||
coverpage: true,
|
||||
|
||||
alias: {
|
||||
'/.*/_sidebar.md': '/_sidebar.md'
|
||||
},
|
||||
@ -46,7 +53,7 @@
|
||||
var footer = [
|
||||
'<hr/>',
|
||||
'<footer>',
|
||||
'<span>Copyright ©Since 2018 <a href="https://github.com/icret/EasyImages2.0" target="_blank">EasyImage</a> Develop By <a href="https://github.com/icret" target="_blank">Icret</a>, Docs By <a href="https://docsify.js.org/#/zh-cn/" target="_blank">Docsify</a>.</span>',
|
||||
'<span>Copyright ©Since 2018 <a href="//github.com/icret/EasyImages2.0" target="_blank">EasyImage</a> Develop By <a href="//github.com/icret" target="_blank">Icret</a>, Docs By <a href="//docsify.js.org/#/zh-cn/" target="_blank">Docsify</a>.</span>',
|
||||
'</footer>'
|
||||
].join('');
|
||||
|
||||
@ -57,7 +64,7 @@
|
||||
|
||||
function (hook, vm) {
|
||||
hook.beforeEach(function (html) {
|
||||
var url = 'https://github.com/icret/EasyImages2.0/blob/master/docs/' + vm.route.file;
|
||||
var url = '//github.com/icret/EasyImages2.0/blob/master/docs/' + vm.route.file;
|
||||
var editHtml = '<a href="' + url + '" target="_blank">📝 在GitHub上编辑</a>';
|
||||
|
||||
return (html + '<br/><br/><br/><br/><br/>' + editHtml);
|
||||
@ -65,27 +72,29 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
// 离线阅读
|
||||
if (typeof navigator.serviceWorker !== 'undefined') {
|
||||
navigator.serviceWorker.register('sw.js');
|
||||
}
|
||||
|
||||
console.log(window.Docsify.version);
|
||||
</script>
|
||||
|
||||
<!-- docsify的js依赖 -->
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.13.0/docsify.min.js"></script>
|
||||
<script src="//cdn.bootcdn.net/ajax/libs/docsify/4.13.0/docsify.min.js"></script>
|
||||
<!-- 全文搜索插件 -->
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.13.0/plugins/search.min.js"></script>
|
||||
<script src="//cdn.bootcdn.net/ajax/libs/docsify/4.13.0/plugins/search.min.js"></script>
|
||||
<!-- 图片缩放插件 -->
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.13.0/plugins/zoom-image.min.js"></script>
|
||||
<script src="//cdn.bootcdn.net/ajax/libs/docsify/4.13.0/plugins/zoom-image.min.js"></script>
|
||||
<!-- 代码拷贝插件 -->
|
||||
<script src="//fastly.jsdelivr.net/npm/docsify-copy-code"></script>
|
||||
<!-- 代码高亮 -->
|
||||
<script src="//fastly.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
|
||||
<!-- 外链脚本 -->
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.13.0/plugins/external-script.min.js"></script>
|
||||
<script src="//cdn.bootcdn.net/ajax/libs/docsify/4.13.0/plugins/external-script.min.js"></script>
|
||||
<!-- 字数统计 -->
|
||||
<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
|
||||
<!-- https://github.com/Sumsung524/docsify-backTop -->
|
||||
<script src="//fastly.jsdelivr.net/gh/Sumsung524/docsify-backTop/dist/docsify-backTop.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,3 +1,9 @@
|
||||
* 2023-04-05 v2.8.0
|
||||
- 修复定时删除最小值不能为0
|
||||
- 修复上传完毕后多次点击复制失效
|
||||
- 修复两处会导致PHP5.6不兼容的代码
|
||||
- 有条件的建议开启OPcache 增速明显
|
||||
|
||||
* 2023-03-11 v2.7.9
|
||||
- 修复粘贴上传
|
||||
- 修复安装检测
|
||||
|
@ -14,7 +14,7 @@
|
||||
"RequestURL": "https://png.cm/api/index.php",
|
||||
"Body": "MultipartFormData",
|
||||
"Arguments": {
|
||||
"token": "8337effca0ddfcd9c5899f3509b23657"
|
||||
"token": "1c17b11693cb5ec63859b091c5b9c1b2"
|
||||
},
|
||||
"FileFormName": "image",
|
||||
"URL": "{json:url}",
|
||||
|
@ -12,7 +12,9 @@
|
||||
chmod -R 755 /安装目录
|
||||
chown -R www:www /安装目录
|
||||
```
|
||||
- 有条件的建议开启OPcache
|
||||
|
||||
#### BT宝塔面板
|
||||
- 1. 软件商店 → 一键部署 → 搜索`简单图床`一键部署稳定版
|
||||
- 2. 使用上边的`Linux`方法搭建
|
||||
- 3. 有条件的建议开启OPcache
|
||||
|
@ -10,3 +10,5 @@
|
||||
|
||||
![](images/微信截图_20211029180211.png)
|
||||
|
||||
- 有条件的建议开启OPcache
|
||||
|
||||
|
@ -22,3 +22,4 @@ location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
|
||||
}
|
||||
```
|
||||
15. 后台设置页面显示不全: 关闭环境自检或下载并命名为[version.json](https://api.github.com/repositories/188228357/releases/latest)到`admin/logs/version/`目录
|
||||
16. 开启OPcache后更新文件或者更新版本号可能不生效,重启PHP即可
|
@ -189,11 +189,17 @@ document.getElementsByClassName('copyBtn6')[0].onclick = function () {
|
||||
}
|
||||
}
|
||||
|
||||
// 按钮状态
|
||||
// 复制按钮状态
|
||||
$('#btnLinks, #btnBbscode, #btnMarkDown, #btnHtml, #btnThumb, #btnDel').on('click', function () {
|
||||
$(this).button('loading').delay(2000).queue(function () {
|
||||
$(this).button('reset');
|
||||
})
|
||||
var $btn = $(this);
|
||||
$btn.addClass('btn-success load-indicator loading');
|
||||
$btn.remove('data-toggle data-original-title');
|
||||
$btn.button('loading');
|
||||
// 此处使用 setTimeout 来模拟复杂功能逻辑
|
||||
setTimeout(function () {
|
||||
$btn.removeClass('btn-success load-indicator loading');
|
||||
$btn.button('reset');
|
||||
}, 666);
|
||||
});
|
||||
|
||||
/** 粘贴上传 2023-01-30 */
|
||||
|
Loading…
Reference in New Issue
Block a user