diff --git a/admin/admin.inc.php b/admin/admin.inc.php index 07d690f..d7b56a7 100755 --- a/admin/admin.inc.php +++ b/admin/admin.inc.php @@ -593,7 +593,7 @@ auto_delete(); //定时删除
天数 - +
" placeholder="隐藏的保存"> diff --git a/app/down.php b/app/down.php index 8ae173a..8b81184 100644 --- a/app/down.php +++ b/app/down.php @@ -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']; diff --git a/app/function.php b/app/function.php index c0cd76b..8a42da0 100644 --- a/app/function.php +++ b/app/function.php @@ -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'; diff --git a/docs/_coverpage.md b/docs/_coverpage.md new file mode 100644 index 0000000..9e04fd0 --- /dev/null +++ b/docs/_coverpage.md @@ -0,0 +1,14 @@ + + + +# EasyImage 2.0 + +> 简单图床 - 无数据库的图床程序 + +- 始于2018年7月,支持多文件上传,功能强大 +- 本程序对于环境要求极低 + +[GitHub](https://github.com/icret/EasyImages2.0) +[DEMO](https://png.cm/) + + \ No newline at end of file diff --git a/docs/_navbar.md b/docs/_navbar.md new file mode 100644 index 0000000..628c7ec --- /dev/null +++ b/docs/_navbar.md @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index d29f829..b2157f5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,10 +4,15 @@ + + + + + - - - + EasyImage2.0 简单图床 + + @@ -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 = [ '
', '' ].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 = '📝 在GitHub上编辑'; return (html + '




' + editHtml); @@ -65,27 +72,29 @@ } ] } + // 离线阅读 if (typeof navigator.serviceWorker !== 'undefined') { navigator.serviceWorker.register('sw.js'); } - - console.log(window.Docsify.version); + - + - + - + - + + + \ No newline at end of file diff --git a/docs/update.md b/docs/update.md index 0baa6a6..409fc3a 100644 --- a/docs/update.md +++ b/docs/update.md @@ -1,3 +1,9 @@ +* 2023-04-05 v2.8.0 +- 修复定时删除最小值不能为0 +- 修复上传完毕后多次点击复制失效 +- 修复两处会导致PHP5.6不兼容的代码 +- 有条件的建议开启OPcache 增速明显 + * 2023-03-11 v2.7.9 - 修复粘贴上传 - 修复安装检测 diff --git a/docs/使用ShareX上传.md b/docs/使用ShareX上传.md index 3748f9a..046ebee 100644 --- a/docs/使用ShareX上传.md +++ b/docs/使用ShareX上传.md @@ -14,7 +14,7 @@ "RequestURL": "https://png.cm/api/index.php", "Body": "MultipartFormData", "Arguments": { - "token": "8337effca0ddfcd9c5899f3509b23657" + "token": "1c17b11693cb5ec63859b091c5b9c1b2" }, "FileFormName": "image", "URL": "{json:url}", diff --git a/docs/安装图床.md b/docs/安装图床.md index 772d2c3..8a83ca9 100644 --- a/docs/安装图床.md +++ b/docs/安装图床.md @@ -12,7 +12,9 @@ chmod -R 755 /安装目录 chown -R www:www /安装目录 ``` +- 有条件的建议开启OPcache #### BT宝塔面板 - 1. 软件商店 → 一键部署 → 搜索`简单图床`一键部署稳定版 - 2. 使用上边的`Linux`方法搭建 +- 3. 有条件的建议开启OPcache diff --git a/docs/安装扩展.md b/docs/安装扩展.md index 7fb2d58..eacc1c4 100644 --- a/docs/安装扩展.md +++ b/docs/安装扩展.md @@ -10,3 +10,5 @@ ![](images/微信截图_20211029180211.png) +- 有条件的建议开启OPcache + diff --git a/docs/常见问题.md b/docs/常见问题.md index d0d81ff..4ab2f5a 100644 --- a/docs/常见问题.md +++ b/docs/常见问题.md @@ -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即可 \ No newline at end of file diff --git a/public/static/EasyImage.js b/public/static/EasyImage.js index 3ff5315..db58f7e 100755 --- a/public/static/EasyImage.js +++ b/public/static/EasyImage.js @@ -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 */