DB 계정을 입력하지 않고도 리셋이 가능한 옵션 추가

- 이미 기능이 사라진 N생성 버튼 제거
- 기존의 DB까지 포함한 초기화를 '완전 리셋'
- 제대로 동작하지 않던 폐쇄중 로그인 변경
- 리셋 프로세스에 권한을 제대로 검사하지 않는 문제 해결
This commit is contained in:
2018-03-11 03:55:54 +09:00
parent 086b579fb5
commit 14e5e14597
12 changed files with 132 additions and 54 deletions
+1 -23
View File
@@ -5,29 +5,7 @@ include "schema.sql";
$connect = dbConn();
print_r($_SESSION);
$query = "select userlevel from general where user_id='$_SESSION[p_id]'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
if($me[userlevel] < 5) {
echo "
<html>
<head>
<title>관리메뉴</title>
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
로그인 정보가 없습니다.<br>관리자라면 폐쇄중 로그인을 1회 실행해 주십시오.<br>
";
banner();
echo "
</body>
</html>";
exit();
}
requireUserLevel($connect, 5);
// 삭제