You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
修复安装时无法更改管理员账号
This commit is contained in:
@@ -92,6 +92,7 @@ Deny from all
|
||||
- 增加图片信息页面
|
||||
- 增加上传黑/白名单
|
||||
- 修复因关闭上传日志而导致的无法鉴黄和后端压缩图片
|
||||
- 修复安装时更改管理员账号失败
|
||||
|
||||
* 2022-1-13 v2.4.5
|
||||
- 修复一处权限问题
|
||||
|
||||
@@ -9,6 +9,7 @@ if (isset($_POST['password'])) {
|
||||
if ($_POST['password'] == $_POST['repassword']) {
|
||||
|
||||
$config['password'] = md5($_POST['password']);
|
||||
$config['user'] = $_POST['user'];
|
||||
} else {
|
||||
|
||||
exit('<script>window.alert("两次密码不一致请重新输入!");location.href="./index.php";</script>');
|
||||
@@ -50,6 +51,7 @@ if (isset($_POST['del_extra_files'])) {
|
||||
@unlink(APP_ROOT . '/README.md');
|
||||
@unlink(APP_ROOT . '/config/EasyIamge.lock');
|
||||
@deldir(APP_ROOT . "/.github/");
|
||||
@deldir(APP_ROOT . "/.git/");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user