From 07d8763a773da547598d4c703f1d6665362138f4 Mon Sep 17 00:00:00 2001 From: = <=> Date: Sun, 6 Feb 2022 15:39:57 +0800 Subject: [PATCH] fix jquery bugs --- README.md | 10 +++- admin/admin.inc.php | 46 ++++++++-------- application/footer.php | 7 +++ application/function.php | 2 +- application/header.php | 55 ++++++++----------- application/info.php | 4 +- application/list.php | 4 +- config/config.php | 28 +++++----- index.php | 27 +++------ install/index.php | 8 +-- install/install.php | 8 +-- public/static/{ => exif}/exif.js | 0 public/static/instantclick-3.1.0.min.js | 13 ----- public/static/{ => jscolor}/jscolor.js | 0 public/static/{ => lazyload}/lazyload.js | 0 public/static/{ => md5}/md5.min.js | 0 public/static/{ => md5}/md5.min.js.map | 0 .../static/{ => nprogress}/nprogress.min.css | 0 .../static/{ => nprogress}/nprogress.min.js | 0 public/static/{ => qrcode}/qrcode.min.js | 0 .../static/zui/lib/jquery/jquery-3.4.1.min.js | 2 - .../static/zui/lib/jquery/jquery-3.6.0.min.js | 2 + 22 files changed, 99 insertions(+), 117 deletions(-) rename public/static/{ => exif}/exif.js (100%) delete mode 100755 public/static/instantclick-3.1.0.min.js rename public/static/{ => jscolor}/jscolor.js (100%) rename public/static/{ => lazyload}/lazyload.js (100%) rename public/static/{ => md5}/md5.min.js (100%) rename public/static/{ => md5}/md5.min.js.map (100%) rename public/static/{ => nprogress}/nprogress.min.css (100%) rename public/static/{ => nprogress}/nprogress.min.js (100%) rename public/static/{ => qrcode}/qrcode.min.js (100%) delete mode 100755 public/static/zui/lib/jquery/jquery-3.4.1.min.js create mode 100755 public/static/zui/lib/jquery/jquery-3.6.0.min.js diff --git a/README.md b/README.md index 5e6f297..fdc198d 100755 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ >本人善写bug 发现bug可提交 [issues](https://github.com/icret/EasyImages2.0/issues) 追求稳定请下载 [稳定版](https://github.com/icret/EasyImages2.0/releases) ## 目录 -[特性](#特性)  [使用注意](#使用注意)  [安装](#安装)  [程序升级](#程序升级)  [安全配置](#安全配置)  [更新日志](#更新日志)  [支持开发者](#支持开发者)  [界面演示](#界面演示)  [兼容](#兼容)  [鸣谢](#鸣谢)  [开源许可](#开源许可)   +[特点](#特点)  [使用注意](#使用注意)  [安装](#安装)  [程序升级](#程序升级)  [安全配置](#安全配置)  [更新日志](#更新日志)  [支持开发者](#支持开发者)  [界面演示](#界面演示)  [兼容](#兼容)  [鸣谢](#鸣谢)  [开源许可](#开源许可)   -## 特性 +## 特点 - [x] 支持仅登录后上传 - [x] 支持设置图片质量 @@ -103,6 +103,12 @@ $HTTP["url"] =~ "^/(i|public)/" {
点击查看2.0版更新日志 +* 2022-2-6 v2.4.9 +- 修复flash和silverlight路径引用(>IE9不影响) +- markdown html alt值改为源文件名 +- 升级jquery-3.4.1至3.6.0 +- 调整了静态文件位置 + * 2022-2-5 v2.4.8 - 调整缩略图内存至128M - 修复无可疑图片时显示错误 diff --git a/admin/admin.inc.php b/admin/admin.inc.php index e1a0b3e..6f54975 100755 --- a/admin/admin.inc.php +++ b/admin/admin.inc.php @@ -127,16 +127,16 @@ if (isset($_GET['reimg'])) {
-
目录保存以 年/月/日/ 递进,非必要请勿修改! 否则会导致部分操作不可用;
-
本人仅为程序开源创作,如非法网站使用与本人无关,请勿用于非法用途;
-
请为本人博客blog.png.cm加上网址链接,谢谢支持。作为开发者你可以对相应的后台功能进行扩展(增删改相应代码),但请保留代码中相关来源信息(例如: 本人博客,邮箱等)。
+
目录保存以 年/月/日/ 递进,非必要请勿修改! 否则会导致部分操作不可用;
+
本人仅为程序开源创作,如非法网站使用与本人无关,请勿用于非法用途;
+
请为本人博客blog.png.cm加上网址链接,谢谢支持。作为开发者你可以对相应的后台功能进行扩展(增删改相应代码),但请保留代码中相关来源信息(例如: 本人博客,邮箱等)。
-
- +
@@ -197,7 +197,7 @@ if (isset($_GET['reimg'])) {
- id="thumbnail0"> + id="thumbnail0">
id="thumbnail1"> @@ -230,7 +230,7 @@ if (isset($_GET['reimg'])) {
- +
@@ -285,7 +285,7 @@ if (isset($_GET['reimg'])) {
- +
@@ -439,11 +439,11 @@ if (isset($_GET['reimg'])) {
- +

-
-
+
+

@@ -457,7 +457,7 @@ if (isset($_GET['reimg'])) {
- + " placeholder="隐藏的保存">
" placeholder="隐藏的保存"> @@ -466,7 +466,7 @@ if (isset($_GET['reimg'])) { " placeholder="隐藏的保存"> @@ -474,7 +474,7 @@ if (isset($_GET['reimg'])) { " placeholder="隐藏的保存"> @@ -553,7 +553,7 @@ if (isset($_GET['reimg'])) {
- title="日志每月保存一个文件;经过测试每月二十万条数据并不影响速度! "> + title="日志每月保存一个文件;经过测试每月二十万条数据并不影响速度! ">
@@ -564,7 +564,7 @@ if (isset($_GET['reimg'])) {
-

为了访问速度,仅显示最近20张图片;鉴黄需要在安全设置->开启图片鉴黄。

+

为了访问速度,仅显示最近20张图片;鉴黄需要在安全设置->开启图片鉴黄。

key申请地址: https://client.moderatecontent.com/

获得key后打开->API 设置->Moderate Key->填入

@@ -757,7 +757,7 @@ if (isset($_GET['reimg'])) {

直接输入账号和密码即可完成修改.

-

更改后会立即生效并重新登录,请务必牢记账号和密码!

+

更改后会立即生效并重新登录,请务必牢记账号和密码!

如果忘记账号可以打开->/config/config.php文件->找到user对应的键值->填入

如果忘记密码请将密码->转换成MD5小写->转换网址->打开/config/config.php文件->找到password对应的键值->填入

@@ -785,8 +785,8 @@ if (isset($_GET['reimg'])) {
-

开启登录上传后,可以添加一些只能上传的账号.

-

更改后会立即生效并重新登录,请将账号和密码发给使用者.

+

开启登录上传后,可以添加一些只能上传的账号.

+

更改后会立即生效并重新登录,请将账号和密码发给使用者.

上传用户的配置文件在config.guest.php

如果忘记密码请填入账号并填写新的密码即可更正密码 | 与更改管理 账号/密码不同!

@@ -819,10 +819,10 @@ if (isset($_GET['reimg'])) {
- + - + + + - + - + - + - + \ No newline at end of file diff --git a/application/info.php b/application/info.php index 23aa98e..d33b3cb 100755 --- a/application/info.php +++ b/application/info.php @@ -87,7 +87,7 @@ clearstatcache(); - + - + @@ -48,7 +48,7 @@ $allUploud = get_file_by_glob(APP_ROOT . $config['path'] . $allUploud, 'number') @$httpUrl = array('date' => $path, 'num' => getFileNumber(APP_ROOT . config_path($path))); ?> - + diff --git a/config/config.php b/config/config.php index 5af8e51..59fd96e 100755 --- a/config/config.php +++ b/config/config.php @@ -1,11 +1,11 @@ -'简单图床 - EasyImage', 'keywords'=>'简单图床,easyimage,无数据库图床,PHP多图长传程序,自适应页面,HTML5,markdown,bbscode,一键复制', 'description'=>'简单图床EasyImage是一款支持多文件上传的无数据库图床,可以完美替代PHP多图上传程序,最新html5自适应页面兼容手机电脑,上传后返回图片直链,markdown图片,论坛贴图bbscode链接,简单方便支持一键复制,支持多域名,api上传。', - 'tips'=>'
  • 单文件≤10M,单次上传≤30张
  • - 简单图床是一款开源图床, 支持多文件上传无数据库 + 'tips'=>'
  • 单文件≤10M,单次上传≤30张
  • + 简单图床是一款开源图床, 支持多文件上传无数据库 如果你喜欢这种图床风格就下载喔 (๑•̀ㅂ•́)و✧', 'domain'=>'http://127.0.0.1', 'imgurl'=>'http://127.0.0.1', @@ -47,15 +47,15 @@ $config=Array 'checkImg_value'=>50, 'moderatecontent_key'=>'', 'nsfwjs_url'=>'', - 'footer'=>'请勿上传违反中国政策的图片 -', 'ad_top'=>0, 'ad_top_info'=>' @@ -80,6 +80,6 @@ var _hmt = _hmt || []; 'check_ip'=>0, 'check_ip_model'=>0, 'check_ip_list'=>'', - 'version'=>'2.4.8', - 'form'=>'2022-02-04 20:31:03' + 'version'=>'2.4.9', + 'form'=>'2022-02-06 15:27:17' ); \ No newline at end of file diff --git a/index.php b/index.php index 3e1bc76..ee56750 100755 --- a/index.php +++ b/index.php @@ -95,9 +95,9 @@ mustLogin(); // 点击文件列表上传文件 browseByClickList: true, // flash 上传组件地址 - flash_swf_url: 'public/static/zui/lib/uploader/Moxie.swf', + flash_swf_url: '/public/static/zui/lib/uploader/Moxie.swf', // silverlight 上传组件地址 - flash_swf_url: 'public/static/zui/lib/uploader/Moxie.xap', + flash_swf_url: '/public/static/zui/lib/uploader/Moxie.xap', // 预览图尺寸 previewImageSize: { 'width': 80, @@ -122,26 +122,17 @@ mustLogin(); autoResetFails: true, , responseHandler: function(responseObject, file) { - var obj = JSON.parse(responseObject.response); //由JSON字符串转换为JSON对象 console.log(obj); // 输出log + console.log(file); // 输出log if (obj.result === 'success') { - var links = document.getElementById("links"); - links.innerHTML += obj.url + "\r\n"; - - var bbscode = document.getElementById("bbscode"); - bbscode.innerHTML += "[img]" + obj.url + "[/img]\r\n"; - - var markdown = document.getElementById("markdown"); - markdown.innerHTML += "![" + obj.srcName + "](" + obj.url + ")\r\n"; - - var html = document.getElementById("html"); - html.innerHTML += '' + obj.srcName + '\r\n'; - - var del = document.getElementById("del"); - del.innerHTML += obj.del + "\r\n"; + document.getElementById("links").innerHTML += obj.url + "\r\n"; + document.getElementById("bbscode").innerHTML += "[img]" + obj.url + "[/img]\r\n"; + document.getElementById("markdown").innerHTML += "![" + obj.srcName + "](" + obj.url + ")\r\n"; + document.getElementById("html").innerHTML += '' + obj.srcName + '\r\n'; + document.getElementById("del").innerHTML += obj.del + "\r\n"; } else { - return '上传失败,服务器返回错误:' + obj.message; + return '上传失败,错误信息:' + obj.message; } } }); diff --git a/install/index.php b/install/index.php index 32d69f4..155602c 100755 --- a/install/index.php +++ b/install/index.php @@ -52,11 +52,11 @@ function checkPASS($name) - - + + - - + + diff --git a/install/install.php b/install/install.php index 51161a9..9df82da 100755 --- a/install/install.php +++ b/install/install.php @@ -24,11 +24,11 @@ if ($state !== 'checked') { - - + + - - + +