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:
@@ -5,14 +5,10 @@ if (file_exists(APP_ROOT . '/install/install.lock')) {
|
||||
exit(header("Location:/../index.php"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (isset($_POST['password'])) {
|
||||
if ($_POST['password'] == $_POST['repassword']) {
|
||||
|
||||
$config['password']=$_POST['password'];
|
||||
|
||||
|
||||
$config['password'] = md5($_POST['password']);
|
||||
} else {
|
||||
|
||||
exit('<script>window.alert("两次密码不一致请重新输入!");location.href="./index.php";</script>');
|
||||
@@ -20,12 +16,11 @@ if (isset($_POST['password'])) {
|
||||
}
|
||||
|
||||
if (isset($_POST['domain'])) {
|
||||
$config['domain']= $_POST['domain'];
|
||||
|
||||
$config['domain'] = $_POST['domain'];
|
||||
}
|
||||
|
||||
if (isset($_POST['imgurl'])) {
|
||||
$config['imgurl']= $_POST['imgurl'];
|
||||
$config['imgurl'] = $_POST['imgurl'];
|
||||
}
|
||||
|
||||
$config_file = APP_ROOT . '/config/config.php';
|
||||
@@ -37,7 +32,7 @@ file_put_contents(APP_ROOT . '/install/install.lock', '安装程序锁定文件
|
||||
echo '
|
||||
<script>
|
||||
window.alert("安装成功,即将为您跳转到登陆界面!");
|
||||
location.href="'.get_whole_url('/install/contorl.php').'/application/login.php'.'";
|
||||
location.href="' . get_whole_url('/install/contorl.php') . '/application/login.php' . '";
|
||||
</script>
|
||||
';
|
||||
// 删除安装目录
|
||||
|
||||
Reference in New Issue
Block a user