DB 계정을 입력하지 않고도 리셋이 가능한 옵션 추가
- 이미 기능이 사라진 N생성 버튼 제거 - 기존의 DB까지 포함한 초기화를 '완전 리셋' - 제대로 동작하지 않던 폐쇄중 로그인 변경 - 리셋 프로세스에 권한을 제대로 검사하지 않는 문제 해결
This commit is contained in:
+21
-5
@@ -1,8 +1,23 @@
|
||||
<?
|
||||
include "lib.php";
|
||||
if(file_exists("d_setting/set.php")) error("이미 set.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
|
||||
include "lib.php";
|
||||
|
||||
@chmod(".",0707);
|
||||
$justReset = isset($_GET['just_reset'])?intval($_GET['just_reset']):0;
|
||||
|
||||
if(file_exists("d_setting/set.php")){
|
||||
//DB 리셋만 하려는 것인지 검사 필요.
|
||||
$connect = dbConn();
|
||||
requireUserLevel($connect, 5);
|
||||
|
||||
if(!$justReset){
|
||||
error("이미 set.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
$justReset = 0;
|
||||
}
|
||||
|
||||
@chmod(".",0707);
|
||||
?>
|
||||
|
||||
<html>
|
||||
@@ -72,9 +87,10 @@ if(!$check) {
|
||||
<br><br><div align=center>
|
||||
<table border=0>
|
||||
<tr>
|
||||
<form method=post action=install1.php onsubmit='return check_submit()'>
|
||||
<form method=post action='".($justReset?'install_ok.php':'install1.php')."' onsubmit='return check_submit()'>
|
||||
<td align=center height=30>
|
||||
<input type=image src=<?=$images;?>/inst_b_1.gif border=0 align=absmiddle>
|
||||
<input type='submit' value='확인'>
|
||||
<input type='hidden' name='just_reset' value='$justReset'>
|
||||
</td>
|
||||
</form>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user