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