2.7.9
parent
5d9a791b8f
commit
b4ec93208d
|
@ -1116,7 +1116,7 @@ class ZipHelper
|
|||
}
|
||||
|
||||
/** 环境检测 */
|
||||
if ($config['checkEnv']) require_once APP_ROOT . '/app/check.php';
|
||||
require_once APP_ROOT . '/app/check.php';
|
||||
/** 底部广告 */
|
||||
if ($config['ad_bot']) echo $config['ad_bot_info'];
|
||||
/** 引入底部 */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
require_once __DIR__ . '/function.php';
|
||||
// 跳转安装
|
||||
if (!is_file(APP_ROOT . '/config/install.lock') and is_file(APP_ROOT . '/install/install.php')) {
|
||||
exit('<script type="text/javascript">window.location.href="' . get_whole_url('/') . '/install/index.php"</script>');
|
||||
|
@ -82,11 +81,13 @@ file_put_contents(APP_ROOT . '/config/EasyIamge.lock', '安装环境检测锁定
|
|||
</div>
|
||||
</div>
|
||||
<script>
|
||||
if (confirm("初次打开会检测环境配置,是否需要查看?")) {
|
||||
$("#myModal-1").modal({
|
||||
keyboard: true,
|
||||
moveable: true,
|
||||
backdrop: "static", //点击空白处不关闭对话框
|
||||
show: true
|
||||
})
|
||||
alert("初次打开会检测环境配置,请仔细看!!");
|
||||
}
|
||||
console.log('EasyIamge.lock 生成完毕!')
|
||||
</script>
|
|
@ -26,7 +26,7 @@ foreach ($expand as $val) {
|
|||
}
|
||||
|
||||
// 检测是否修改默认密码
|
||||
if ($config['password'] === 'e6e061838856bf47e1de730719fb2609') {
|
||||
if ($config['password'] === '7676aaafb027c825bd9abab78b234070e702752f625b752e55e55b48e607e358') {
|
||||
echo '
|
||||
new $.zui.Messager("请修改默认密码,否则会有泄露风险! ",{
|
||||
type: "warning", // 定义颜色主题
|
||||
|
|
|
@ -32,7 +32,7 @@ define('APP_ROOT', str_replace('\\', '/', realpath(dirname(__FILE__) . '/../')))
|
|||
// 判断当前的系统类型是否为windows
|
||||
define('IS_WIN', strstr(PHP_OS, 'WIN') ? 1 : 0);
|
||||
// 定义当前版本
|
||||
define('APP_VERSION', '2.7.8');
|
||||
define('APP_VERSION', '2.7.9');
|
||||
|
||||
/*---------------基础配置结束-------------------*/
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,7 @@
|
|||
* 2023-03-11 v2.7.9
|
||||
- 修复粘贴上传
|
||||
- 修复安装检测
|
||||
|
||||
* 2023-03-11 v2.7.8
|
||||
- 默认不再开启`环境自检`
|
||||
- 增加前端上传签名
|
||||
|
|
|
@ -187,7 +187,7 @@ mustLogin();
|
|||
</script>
|
||||
<?php
|
||||
/** 环境检测 */
|
||||
if ($config['checkEnv']) require_once APP_ROOT . '/app/check.php';
|
||||
require_once APP_ROOT . '/app/check.php';
|
||||
/** 底部广告 */
|
||||
if ($config['ad_bot']) echo $config['ad_bot_info'];
|
||||
/** 引入底部 */
|
||||
|
|
|
@ -223,6 +223,7 @@ $('#btnLinks, #btnBbscode, #btnMarkDown, #btnHtml, #btnThumb, #btnDel').on('clic
|
|||
|
||||
var formData = new FormData();
|
||||
formData.append('file', file);
|
||||
formData.append('sign', new Date().format("YYYYMMddhh"));
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState == 1) {
|
||||
|
@ -256,7 +257,7 @@ $('#btnLinks, #btnBbscode, #btnMarkDown, #btnHtml, #btnThumb, #btnDel').on('clic
|
|||
document.getElementById("thumb").innerHTML += result.thumb + "\r\n";
|
||||
document.getElementById("del").innerHTML += result.del + "\r\n";
|
||||
|
||||
$.zui.messager.show(result.srcName + '上传成功', {
|
||||
$.zui.messager.show(/** result.srcName + */'粘贴上传成功', {
|
||||
icon: 'bell',
|
||||
time: 4000,
|
||||
type: 'success',
|
||||
|
@ -273,7 +274,7 @@ $('#btnLinks, #btnBbscode, #btnMarkDown, #btnHtml, #btnThumb, #btnDel').on('clic
|
|||
$.zui.messager.show('上传失败...' + result.message, {
|
||||
icon: 'bell',
|
||||
time: 4000,
|
||||
type: 'primary',
|
||||
type: 'danger',
|
||||
placement: 'top'
|
||||
});
|
||||
}
|
||||
|
@ -287,7 +288,7 @@ $('#btnLinks, #btnBbscode, #btnMarkDown, #btnHtml, #btnThumb, #btnDel').on('clic
|
|||
placement: 'top'
|
||||
});
|
||||
};
|
||||
xhr.open('POST', './application/upload.php?sign=' + new Date().format("YYYYMMddhh"), true);
|
||||
xhr.open('POST', 'app/upload.php', true);
|
||||
xhr.send(formData);
|
||||
});
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue