Files
core/twe/install1.php
T
Hide_D 0c9be5c53f 루트DB를 관리하는 방식을 통째로 변경
- DB 불러오는 방식을 기존의 set.php에서 conf.php의 getRootDB()를 이용하도록 변경
- ADODB 에 기반한 _DB 클래스 폐기
- DBS.php 폐기
- _Setting 클래스 용도 변경
- 서버 목록 정의 방식을 하나로 모음
- 로그인시 세션에 사용자 등급을 추가
- "참여"(donation) 관련 코드 전면 제거
- 서버 리셋시 부운영자 비밀번호 문제 수정
- 서버 오픈,닫힘 여부를 새 서버 목록 정의 방식에 따르도록 수정
- DBS.php가 폐기 되었으므로 서버 오픈시 기본 정보를 json으로 받아오도록 하기 위하여 기본 준비
-  기존에 남아있던 세부 서버 로그인 처리 파일을 제거(enterPost.php)
- DBS.php 삭제로 전콘 변경시에도 각 서버로 json 호출을 하도록 하는 방식으로 준비
- 전콘을 수동으로 서버에 올린뒤 처리할 수 있도록 하던 legacy 코드 제거
- general 테이블에서 userlevel 컬럼을 삭제하고, 세션에 기록된 userGrade를 이용하도록 변경
- 벌점 제한을 모든 유저 공통으로 하도록 수정
- 세부 서버 리셋을 json ajax로 처리하도록 준비
2018-03-07 00:59:31 +09:00

91 lines
2.9 KiB
PHP

<?php
include "lib.php";
if(getUserGrade(true) < 5){
die('관리자 아님');
}
if(file_exists("d_setting/conf.php")) error("이미 conf.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
?>
<html>
<head>
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=StyleSheet HREF=style.css type=text/css title=style>
</head>
<script>
function check_submit()
{
if(!write.hostname.value)
{
alert("HostName을 입력하세요");
write.hostname.focus();
return false;
}
if(!write.user_id.value)
{
alert("USER ID 를 입력하세요");
write.user_id.focus();
return false;
}
if(!write.dbname.value)
{
alert("DB Name를 입력하세요");
write.dbname.focus();
return false;
}
return true;
}
</script>
<body bgcolor=#000000 text=#ffffff>
<br><br><br>
<div align=center>
<table cellpadding=0 cellspacing=0 width=600 border=0>
<tr>
<td height=30 colspan=3><img src=<?=$images;?>/inst_top.gif></td>
</tr>
<tr>
<td>
<br>
<img src=<?=$images;?>/inst_step2.gif>
</td>
</tr>
<tr>
<td>
<br>
<form name=write method=post action=install_ok.php onsubmit="return check_submit();">
<table border=0 cellpadding=2 cellspacing=0>
<tr>
<td width=90 align=right style=font-family:Tahoma;font-size:8pt;>Host Name</td>
<td width=90><input type=text name=hostname value='localhost' style=font-family:Tahoma;font-size:8pt;></td>
<td width=300>MySQL DB의 호스트네임을 입력하세요.</font></td>
</tr>
<tr>
<td align=right style=font-family:Tahoma;font-size:8pt;>SQL User ID</td>
<td><input type=text name=user_id style=font-family:Tahoma;font-size:8pt;></td>
<td>MySQL계정의 ID를 입력하세요</font></td>
</tr>
<tr>
<td align=right style=font-family:Tahoma;font-size:8pt;>Password</td>
<td><input type=password name=password style=font-family:Tahoma;font-size:8pt;></td>
<td>Mysql DB의 패스워드를 입력하세요</font></td>
</tr>
<tr>
<td align=right style=font-family:Tahoma;font-size:8pt;>DB Name</td>
<td><input type=text name=dbname style=font-family:Tahoma;font-size:8pt;></td>
<td>Mysql DB의 Name을 입력하세요</font></td>
</tr>
<tr>
<td colspan=3 align=center><br><br><input type=image src=<?=$images;?>/inst_b_2.gif border=0 align=absmiddle></td>
</tr>
</form>
</table>
<br>
</td>
</tr>
</table>
</body>
</html>