Files
core/twe/old/install1.php
T
Hide_D a3f83d1e95 Session 클래스 수정.
- Session클래스 내에서 global setter, getter 재정의
- Session클래스에서 static 함수로 getUserID, getUserGrade 재정의
- 내부 서버에서 getUserID, getUserGrade를 쓰던 것 Session 클래스로 통일
- SESSION.php가 requireLogin 기능을 수행하던것을 Session의 static 함수로 통합
2018-03-24 20:04:55 +09:00

93 lines
3.0 KiB
PHP

<?php
namespace sammo;
include "lib.php";
if(Session::getUserGrade(true) < 5){
die('관리자 아님');
}
if(file_exists("d_setting/conf.php")) error("이미 conf.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
?>
<!DOCTYPE html>
<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>