경로 수정 작업 중
This commit is contained in:
@ -1,205 +1,150 @@
|
||||
<?
|
||||
include_once ("../config.php");
|
||||
$gmnow = gmdate('D, d M Y H:i:s').' GMT';
|
||||
header('Expires: 0'); // rfc2616 - Section 14.21
|
||||
header('Last-Modified: ' . $gmnow);
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
|
||||
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
|
||||
header('Pragma: no-cache'); // HTTP/1.0
|
||||
|
||||
// 파일이 존재한다면 설치할 수 없다.
|
||||
if (file_exists("../dbconfig.php")) {
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
|
||||
echo <<<HEREDOC
|
||||
<script language="JavaScript">
|
||||
alert("설치하실 수 없습니다.");
|
||||
location.href="../";
|
||||
</script>
|
||||
HEREDOC;
|
||||
exit;
|
||||
}
|
||||
$title = "그누보드4s 설치 3단계 중 2단계 설정";
|
||||
include_once ('../config.php');
|
||||
include_once ('./install.inc.php');
|
||||
|
||||
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
|
||||
header("Expires: 0"); // rfc2616 - Section 14.21
|
||||
header("Last-Modified: " . $gmnow);
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
|
||||
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
|
||||
header("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
if ($_POST["agree"] != "동의함") {
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
|
||||
echo <<<HEREDOC
|
||||
<script language="JavaScript">
|
||||
alert("라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.");
|
||||
history.back();
|
||||
</script>
|
||||
HEREDOC;
|
||||
if ($_POST['agree'] != '동의함') {
|
||||
echo "<div>라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.</div>".PHP_EOL;
|
||||
echo "<div><a href=\"./\">뒤로가기</a></div>".PHP_EOL;
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<title>영카트4 설치 (2/3) - 설정</title>
|
||||
<style type="text/css">
|
||||
.body {
|
||||
font-family: 굴림;
|
||||
font-size: 12px;
|
||||
}
|
||||
.box {
|
||||
font-family:굴림;
|
||||
background-color: #D6D3CE;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body background="img/all_bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
||||
<div align="center">
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<table width="587" border="0" cellspacing="0" cellpadding="0">
|
||||
<form name=frm method=post action="javascript:frm_submit(document.frm)" autocomplete="off">
|
||||
<tr>
|
||||
<td colspan="3"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="587" height="22">
|
||||
<param name="movie" value="img/top.swf">
|
||||
<param name="quality" value="high">
|
||||
<embed src="img/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="587" height="22"></embed></object></td>
|
||||
<form id="frm_install" method="post" action="./install_db.php" onsubmit="return frm_install_submit(this)">
|
||||
<table style="margin-bottom:30px">
|
||||
<caption>MySQL 정보입력</caption>
|
||||
<colgroup>
|
||||
<col style="width:150px">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="">Host</label></th>
|
||||
<td>
|
||||
<input name="mysql_host" type="text" value="localhost" id="mysql_host">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="3"><img src="img/box_left.gif" width="3" height="340"></td>
|
||||
<td width="581" valign="top" bgcolor="#FCFCFC"><table width="581" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><img src="img/box_title.gif" width="581" height="56"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table width="540" border="0" align="center" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<td width="270" height="16"><strong>MySQL 정보입력 </strong><br>
|
||||
<br>
|
||||
<table width="270" border="0" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>Host : </td>
|
||||
<td><input name="mysql_host" type="text" class="box" value="localhost"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>User : </td>
|
||||
<td><input name="mysql_user" type="text" class="box"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>Password : </td>
|
||||
<td><input name="mysql_pass" type="text" class="box"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>DB : </td>
|
||||
<td><input name="mysql_db" type="text" class="box"></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td><strong>최고관리자 정보입력</strong> <br>
|
||||
<br>
|
||||
<table width="270" border="0" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>ID : </td>
|
||||
<td><input name="admin_id" type="text" class="box" value="admin" onkeypress="only_alpha();"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>Password : </td>
|
||||
<td><input name="admin_pass" type="text" class="box"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>Name : </td>
|
||||
<td><input name="admin_name" type="text" class="box" value="최고관리자"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>E-mail : </td>
|
||||
<td><input name="admin_email" type="text" class="box" value="admin@domain"></td>
|
||||
</tr>
|
||||
</table> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="562" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height=15><img src="img/box_line.gif" width="562" height="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=body height=35 style='padding-left:20px; line-height:200%;'>
|
||||
<input type=checkbox name=install_g4 value='1'> 그누보드4를 재설치 하시려면 체크하십시오.<br>
|
||||
<font color=crimson>프로그램의 설치시 기존의 자료는 완전히 망실되며 복구할 방법이 없습니다.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=15><img src="img/box_line.gif" width="562" height="2"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table width="551" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<input type="submit" name="Submit2" value=" 다 음 ">
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="3"><img src="img/box_right.gif" width="3" height="340"></td>
|
||||
<tr>
|
||||
<th scope="row"><label for="">User</label></th>
|
||||
<td>
|
||||
<input name="mysql_user" type="text" id="mysql_user">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><img src="img/box_bottom.gif" width="587" height="3"></td>
|
||||
<tr>
|
||||
<th scope="row"><label for="">Password</label></th>
|
||||
<td>
|
||||
<input name="mysql_pass" type="text" id="mysql_pass">
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
<tr>
|
||||
<th scope="row"><label for="">DB</label></th>
|
||||
<td>
|
||||
<input name="mysql_db" type="text" id="mysql_db">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="">TABLE명 접두사</label></th>
|
||||
<td>
|
||||
<span>가능한 변경하지 마십시오.</span>
|
||||
<input name="table_prefix" type="text" value="g4s_" id="table_prefix">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table border>
|
||||
<caption>최고관리자 정보입력</caption>
|
||||
<colgroup>
|
||||
<col style="width:150px">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="">회원 ID</label></th>
|
||||
<td>
|
||||
<input name="admin_id" type="text" value="admin" id="admin_id">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="">패스워드</label></th>
|
||||
<td>
|
||||
<input name="admin_pass" type="text" id="admin_pass">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="">이름</label></th>
|
||||
<td>
|
||||
<input name="admin_name" type="text" value="최고관리자" id="admin_name">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="">E-mail</label></th>
|
||||
<td>
|
||||
<input name="admin_email" type="text" value="admin@domain.com" id="admin_email">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
function frm_submit(f)
|
||||
<p class="outside">
|
||||
<strong class="st_strong">주의! 이미 그누보드4s가 존재한다면 DB 자료가 망실되므로 주의하십시오.</strong><br>
|
||||
주의사항을 이해하고, 새로 설치하시려면 다음을 눌러 설치를 계속하십시오.
|
||||
</p>
|
||||
|
||||
<div id="btn_confirm">
|
||||
<input type="submit" value="다음">
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function frm_install_submit(f)
|
||||
{
|
||||
if (f.mysql_host.value == "")
|
||||
{
|
||||
alert("MySQL Host 를 입력하십시오."); f.mysql_host.focus(); return;
|
||||
}
|
||||
else if (f.mysql_user.value == "")
|
||||
if (f.mysql_host.value == '')
|
||||
{
|
||||
alert("MySQL User 를 입력하십시오."); f.mysql_user.focus(); return;
|
||||
alert('MySQL Host 를 입력하십시오.'); f.mysql_host.focus(); return false;
|
||||
}
|
||||
else if (f.mysql_db.value == "")
|
||||
else if (f.mysql_user.value == '')
|
||||
{
|
||||
alert("MySQL DB 를 입력하십시오."); f.mysql_db.focus(); return;
|
||||
alert('MySQL User 를 입력하십시오.'); f.mysql_user.focus(); return false;
|
||||
}
|
||||
else if (f.admin_id.value == "")
|
||||
else if (f.mysql_db.value == '')
|
||||
{
|
||||
alert("최고관리자 ID 를 입력하십시오."); f.admin_id.focus(); return;
|
||||
alert('MySQL DB 를 입력하십시오.'); f.mysql_db.focus(); return false;
|
||||
}
|
||||
else if (f.admin_pass.value == "")
|
||||
else if (f.admin_id.value == '')
|
||||
{
|
||||
alert("최고관리자 패스워드를 입력하십시오."); f.admin_pass.focus(); return;
|
||||
alert('최고관리자 ID 를 입력하십시오.'); f.admin_id.focus(); return false;
|
||||
}
|
||||
else if (f.admin_name.value == "")
|
||||
else if (f.admin_pass.value == '')
|
||||
{
|
||||
alert("최고관리자 이름을 입력하십시오."); f.admin_name.focus(); return;
|
||||
alert('최고관리자 패스워드를 입력하십시오.'); f.admin_pass.focus(); return false;
|
||||
}
|
||||
else if (f.admin_email.value == "")
|
||||
else if (f.admin_name.value == '')
|
||||
{
|
||||
alert("최고관리자 E-mail 을 입력하십시오."); f.admin_email.focus(); return;
|
||||
alert('최고관리자 이름을 입력하십시오.'); f.admin_name.focus(); return false;
|
||||
}
|
||||
else if (f.admin_email.value == '')
|
||||
{
|
||||
alert('최고관리자 E-mail 을 입력하십시오.'); f.admin_email.focus(); return false;
|
||||
}
|
||||
|
||||
|
||||
if(/[^a-zA-Z]/g.test(f.admin_id.value)) {
|
||||
alert("최고관리자 ID 가 영문자가 아닙니다.");
|
||||
if(/^[a-z][a-z0-9]/i.test(f.admin_id.value) == false) {
|
||||
alert('최고관리자 회원 ID는 첫자는 반드시 영문자 그리고 영문자와 숫자로만 만드셔야 합니다.');
|
||||
f.admin_id.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
f.action = "./install_db.php";
|
||||
f.submit();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// 영문자만 입력 가능
|
||||
function only_alpha()
|
||||
{
|
||||
var c = event.keyCode;
|
||||
if (!(c >= 65 && c <= 90 || c >= 97 && c <= 122)) {
|
||||
event.returnValue = false;
|
||||
}
|
||||
}
|
||||
|
||||
document.frm.mysql_user.focus();
|
||||
//-->
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user