fix login

pull/18/head
icret 2022-01-21 21:31:18 +08:00
parent 0723e4ad5f
commit 1bf0ee0ada
3 changed files with 13 additions and 10 deletions

View File

@ -49,6 +49,10 @@ if (isset($_REQUEST['code'])) {
}
}
if (isset($_GET['install'])) {
header('Location: login.php');
}
?>
<form class="form-horizontal" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" onsubmit="return md5_post()">
<div class="form-group">

View File

@ -5,8 +5,8 @@ $config=Array
'keywords'=>'简单图床,easyimage,无数据库图床,PHP多图长传程序,自适应页面,HTML5,markdown,bbscode,一键复制',
'description'=>'简单图床EasyImage是一款支持多文件上传的无数据库图床,可以完美替代PHP多图上传程序最新html5自适应页面兼容手机电脑上传后返回图片直链markdown图片论坛贴图bbscode链接简单方便支持一键复制支持多域名api上传。',
'tips'=>'本站仅做演示用,不定时清理图片单文件≤5M每次上传≤30张',
'domain'=>'http://localhost',
'imgurl'=>'http://localhost',
'domain'=>'http://127.0.0.1',
'imgurl'=>'http://127.0.0.1',
'user'=>'admin',
'password'=>'e6e061838856bf47e1de730719fb2609',
'mustLogin'=>0,

View File

@ -29,13 +29,6 @@ cache_write($config_file, $config);
file_put_contents(APP_ROOT . '/install/install.lock', '安装程序锁定文件。'); // 创建安装程序锁
// 跳转主页
echo '
<script>
window.alert("安装成功,即将为您跳转到登陆界面!");
location.href="' . get_whole_url('/install/contorl.php') . '/application/login.php' . '";
</script>
';
// 删除安装目录
if (isset($_POST['del_install'])) {
if ($_POST['del_install'] == "del") {
@ -55,4 +48,10 @@ if (isset($_POST['del_extra_files'])) {
}
}
//exit(header("Location:/../application/login.php")); // 跳转主页
// 跳转主页
echo '
<script>
window.alert("安装成功,即将为您跳转到登陆界面!");
location.href="../application/login.php?install";
</script>
';