사용자단 따옴표 수정
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
<?
|
||||
include_once ("../config.php");
|
||||
include_once ("./install.inc.php");
|
||||
include_once ('../config.php');
|
||||
include_once ('./install.inc.php');
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4[charset]?>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<title>그누보드4 설치 (1/3) - 라이센스(License)</title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
@ -27,43 +27,43 @@ include_once ("./install.inc.php");
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<table width="587" border="0" cellspacing="0" cellpadding="0" align=center>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<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>
|
||||
<tr>
|
||||
<td><img src="img/box_title.gif" width="581" height="56"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="541" border="0" align="center" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<tr>
|
||||
<td height="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td>라이센스(License) 내용을 반드시 확인하십시오.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td height="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
|
||||
|
||||
<textarea name="textarea" style='width:99%' rows="9" class="box" readonly>
|
||||
<?=implode("", file("../LICENSE"));?>
|
||||
</textarea>
|
||||
<?=implode('', file('../LICENSE'));?>
|
||||
</textarea>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=10></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td>설치를 원하시면 위 내용에 동의하셔야 합니다.<br>
|
||||
동의를 원하시면 <예, 동의합니다> 버튼을 클릭해 주세요.</td>
|
||||
</tr>
|
||||
@ -74,8 +74,8 @@ include_once ("./install.inc.php");
|
||||
</tr>
|
||||
</table>
|
||||
<table width="551" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<form name=frm method=post onsubmit="return frm_submit(document.frm);">
|
||||
<input type="hidden" name="agree" value="동의함">
|
||||
<input type="submit" name="btn_submit" value="예, 동의합니다 ">
|
||||
@ -86,7 +86,7 @@ include_once ("./install.inc.php");
|
||||
</td>
|
||||
<td width="3"><img src="img/box_right.gif" width="3" height="340"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="3"><img src="img/box_bottom.gif" width="587" height="3"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -1,26 +1,26 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 파일이 존재한다면 설치할 수 없다.
|
||||
if (file_exists("../{$g4['dbconfig']}")) {
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
|
||||
if (file_exists($g4['dbconfig'])) {
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
||||
echo "<p>프로그램이 이미 설치되어 있습니다.<br />새로 설치하시려면 dbconfig 파일을 삭제후 설치하시기 바랍니다.</p>";
|
||||
exit;
|
||||
}
|
||||
|
||||
// data 디렉토리가 있는가?
|
||||
if (!is_dir("../data"))
|
||||
if (!is_dir('../data'))
|
||||
{
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
|
||||
echo "<p>루트 디렉토리에 아래로 data 디렉토리를 생성하여 주십시오.<br />(common.php 파일이 있는곳이 루트 디렉토리 입니다.)<br /><br />$> mkdir data<br /><br />위 명령 실행후 다시 설치하여 주십시오.</p>";
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
||||
echo "<p>루트 디렉토리에 아래로 data 디렉토리를 생성하여 주십시오.<br />(common.php 파일이 있는곳이 루트 디렉토리 입니다.)<br /><br />$> mkdir data<br /><br />위 명령 실행후 다시 설치하여 주십시오.</p>";
|
||||
exit;
|
||||
}
|
||||
|
||||
// data 디렉토리에 파일 생성 가능한지 검사.
|
||||
if (!(is_readable("../data") && is_writeable("../data") && is_executable("../data")))
|
||||
if (!(is_readable('../data') && is_writeable('../data') && is_executable('../data')))
|
||||
{
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
|
||||
echo "<p>data 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />$> chmod 707 data 또는 chmod uo+rwx data<br /><br />위 명령 실행후 다시 설치하여 주십시오.</p>";
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
||||
echo "<p>data 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />$> chmod 707 data 또는 chmod uo+rwx data<br /><br />위 명령 실행후 다시 설치하여 주십시오.</p>";
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@ -1,6 +1,6 @@
|
||||
<?
|
||||
include_once ("../config.php");
|
||||
include_once ("./install.inc.php");
|
||||
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
|
||||
@ -9,8 +9,8 @@ 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]'>";
|
||||
if ($_POST['agree'] != "동의함") {
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
||||
echo <<<HEREDOC
|
||||
<script language="JavaScript">
|
||||
alert("라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.");
|
||||
@ -22,7 +22,7 @@ HEREDOC;
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4[charset]?>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<title>그누보드4 설치 (2/3) - 설정</title>
|
||||
<style type="text/css">
|
||||
.body {
|
||||
@ -45,38 +45,38 @@ HEREDOC;
|
||||
<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>
|
||||
<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>
|
||||
</tr>
|
||||
<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>
|
||||
<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>
|
||||
<tr>
|
||||
<td width="270" height="16"><strong>MySQL 정보입력 </strong><br>
|
||||
<br>
|
||||
<table width="270" border="0" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>Host : </td>
|
||||
<td><input name="mysql_host" type="text" class="box" value="localhost"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>User : </td>
|
||||
<td><input name="mysql_user" type="text" class="box"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>Password : </td>
|
||||
<td><input name="mysql_pass" type="text" class="box"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>DB : </td>
|
||||
<td><input name="mysql_db" type="text" class="box"></td>
|
||||
</tr>
|
||||
@ -84,19 +84,19 @@ HEREDOC;
|
||||
<td><strong>최고관리자 정보입력</strong> <br>
|
||||
<br>
|
||||
<table width="270" border="0" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<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>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>Password : </td>
|
||||
<td><input name="admin_pass" type="text" class="box"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="80" align="right" height=30>Name : </td>
|
||||
<td><input name="admin_name" type="text" class="box" value="최고관리자"></td>
|
||||
</tr>
|
||||
<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>
|
||||
@ -104,27 +104,27 @@ HEREDOC;
|
||||
</tr>
|
||||
</table>
|
||||
<table width="562" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<tr>
|
||||
<td height=15><img src="img/box_line.gif" width="562" height="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td class=body align=right height=35><font color=crimson>이미 그누보드4가 존재한다면 DB 자료가 망실되므로 주의하십시오.</font></td>
|
||||
</tr>
|
||||
<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">
|
||||
<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>
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="3"><img src="img/box_bottom.gif" width="587" height="3"></td>
|
||||
</tr>
|
||||
</form>
|
||||
@ -136,32 +136,32 @@ HEREDOC;
|
||||
function frm_submit(f)
|
||||
{
|
||||
if (f.mysql_host.value == "")
|
||||
{
|
||||
alert("MySQL Host 를 입력하십시오."); f.mysql_host.focus(); return;
|
||||
{
|
||||
alert("MySQL Host 를 입력하십시오."); f.mysql_host.focus(); return;
|
||||
}
|
||||
else if (f.mysql_user.value == "")
|
||||
{
|
||||
alert("MySQL User 를 입력하십시오."); f.mysql_user.focus(); return;
|
||||
alert("MySQL User 를 입력하십시오."); f.mysql_user.focus(); return;
|
||||
}
|
||||
else if (f.mysql_db.value == "")
|
||||
{
|
||||
alert("MySQL DB 를 입력하십시오."); f.mysql_db.focus(); return;
|
||||
alert("MySQL DB 를 입력하십시오."); f.mysql_db.focus(); return;
|
||||
}
|
||||
else if (f.admin_id.value == "")
|
||||
{
|
||||
alert("최고관리자 ID 를 입력하십시오."); f.admin_id.focus(); return;
|
||||
alert("최고관리자 ID 를 입력하십시오."); f.admin_id.focus(); return;
|
||||
}
|
||||
else if (f.admin_pass.value == "")
|
||||
{
|
||||
alert("최고관리자 패스워드를 입력하십시오."); f.admin_pass.focus(); return;
|
||||
alert("최고관리자 패스워드를 입력하십시오."); f.admin_pass.focus(); return;
|
||||
}
|
||||
else if (f.admin_name.value == "")
|
||||
{
|
||||
alert("최고관리자 이름을 입력하십시오."); f.admin_name.focus(); return;
|
||||
alert("최고관리자 이름을 입력하십시오."); f.admin_name.focus(); return;
|
||||
}
|
||||
else if (f.admin_email.value == "")
|
||||
{
|
||||
alert("최고관리자 E-mail 을 입력하십시오."); f.admin_email.focus(); return;
|
||||
alert("최고관리자 E-mail 을 입력하십시오."); f.admin_email.focus(); return;
|
||||
}
|
||||
|
||||
|
||||
@ -176,8 +176,8 @@ function frm_submit(f)
|
||||
return true;
|
||||
}
|
||||
|
||||
// 영문자만 입력 가능
|
||||
function only_alpha()
|
||||
// 영문자만 입력 가능
|
||||
function only_alpha()
|
||||
{
|
||||
var c = event.keyCode;
|
||||
if (!(c >= 65 && c <= 90 || c >= 97 && c <= 122)) {
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?
|
||||
set_time_limit(0);
|
||||
|
||||
include_once ("../config.php");
|
||||
include_once ("./install.inc.php");
|
||||
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
|
||||
@ -11,36 +11,36 @@ 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
|
||||
|
||||
$mysql_host = $_POST[mysql_host];
|
||||
$mysql_user = $_POST[mysql_user];
|
||||
$mysql_pass = $_POST[mysql_pass];
|
||||
$mysql_db = $_POST[mysql_db];
|
||||
$admin_id = $_POST[admin_id];
|
||||
$admin_pass = $_POST[admin_pass];
|
||||
$admin_name = $_POST[admin_name];
|
||||
$admin_email = $_POST[admin_email];
|
||||
$mysql_host = $_POST['mysql_host'];
|
||||
$mysql_user = $_POST['mysql_user'];
|
||||
$mysql_pass = $_POST['mysql_pass'];
|
||||
$mysql_db = $_POST['mysql_db'];
|
||||
$admin_id = $_POST['admin_id'];
|
||||
$admin_pass = $_POST['admin_pass'];
|
||||
$admin_name = $_POST['admin_name'];
|
||||
$admin_email = $_POST['admin_email'];
|
||||
|
||||
if (strtolower($g4[charset]) == 'utf-8') @mysql_query("set names utf8");
|
||||
else if (strtolower($g4[charset]) == 'euc-kr') @mysql_query("set names euckr");
|
||||
if (strtolower($g4['charset']) == 'utf-8') @mysql_query("set names utf8");
|
||||
else if (strtolower($g4['charset']) == 'euc-kr') @mysql_query("set names euckr");
|
||||
$dblink = @mysql_connect($mysql_host, $mysql_user, $mysql_pass);
|
||||
if (!$dblink) {
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
|
||||
echo "<script language='JavaScript'>alert('MySQL Host, User, Password 를 확인해 주십시오.');history.back();</script>";
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
||||
echo "<script language='JavaScript'>alert('MySQL Host, User, Password 를 확인해 주십시오.');history.back();</script>";
|
||||
exit;
|
||||
}
|
||||
|
||||
if (strtolower($g4[charset]) == 'utf-8') @mysql_query("set names utf8");
|
||||
else if (strtolower($g4[charset]) == 'euc-kr') @mysql_query("set names euckr");
|
||||
if (strtolower($g4['charset']) == 'utf-8') @mysql_query("set names utf8");
|
||||
else if (strtolower($g4['charset']) == 'euc-kr') @mysql_query("set names euckr");
|
||||
$select_db = @mysql_select_db($mysql_db, $dblink);
|
||||
if (!$select_db) {
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'>";
|
||||
echo "<script language='JavaScript'>alert('MySQL DB 를 확인해 주십시오.');history.back();</script>";
|
||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
||||
echo "<script language='JavaScript'>alert('MySQL DB 를 확인해 주십시오.');history.back();</script>";
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4[charset]?>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
|
||||
<title>그누보드4 설치 (3/3) - DB</title>
|
||||
<style type="text/css">
|
||||
.body {
|
||||
@ -70,51 +70,51 @@ if (!$select_db) {
|
||||
<p> </p>
|
||||
<table width="587" border="0" cellspacing="0" cellpadding="0">
|
||||
<form name=frminstall2>
|
||||
<tr>
|
||||
<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="../install/img/top.swf">
|
||||
<param name="quality" value="high">
|
||||
<embed src="../install/img/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="587" height="22"></embed></object></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="3"><img src="../install/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>
|
||||
<tr>
|
||||
<td><img src="../install/img/box_title.gif" width="581" height="56"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table width="541" border="0" align="center" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<tr>
|
||||
<td>설치를 시작합니다. <font color="#CC0000">설치중 작업을 중단하지 마십시오. </font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><div align="left">
|
||||
|
||||
<input name="status_bar" type="text" class="box" size="76" readonly></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><table width="350" border="0" align="center" cellpadding="5" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="50"> </td>
|
||||
<td width="300"><input type=text name=job1 class=nobox size=80 readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="50"> </td>
|
||||
<td width="300"><input type=text name=job2 class=nobox size=80 readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td width="50"> </td>
|
||||
<td width="300"><input type=text name=job3 class=nobox size=80 readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50">
|
||||
<tr>
|
||||
<td width="50">
|
||||
<div align="center"></div></td>
|
||||
<td width="300"><input type=text name=job4 class=nobox size=80 readonly></td>
|
||||
</tr>
|
||||
@ -123,7 +123,7 @@ if (!$select_db) {
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><input type=text name=job5 class=nobox size=90 readonly></td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -133,46 +133,46 @@ if (!$select_db) {
|
||||
</tr>
|
||||
</table>
|
||||
<table width="551" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<input type="button" name="btn_next" disabled value="메인화면" onclick="location.href='../';">
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="3"><img src="../install/img/box_right.gif" width="3" height="340"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="3"><img src="../install/img/box_bottom.gif" width="587" height="3"></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
</div>
|
||||
<?
|
||||
flush(); usleep(50000);
|
||||
flush(); usleep(50000);
|
||||
|
||||
// 테이블 생성 ------------------------------------
|
||||
$file = implode("", file("./sql_gnuboard4.sql"));
|
||||
$file = implode('', file('./sql_gnuboard4.sql'));
|
||||
eval("\$file = \"$file\";");
|
||||
|
||||
$f = explode(";", $file);
|
||||
$f = explode(';', $file);
|
||||
for ($i=0; $i<count($f); $i++) {
|
||||
if (trim($f[$i]) == "") continue;
|
||||
if (trim($f[$i]) == '') continue;
|
||||
mysql_query($f[$i]) or die(mysql_error());
|
||||
}
|
||||
// 테이블 생성 ------------------------------------
|
||||
|
||||
echo "<script>document.frminstall2.job1.value='전체 테이블 생성중';</script>";
|
||||
flush(); usleep(50000);
|
||||
flush(); usleep(50000);
|
||||
|
||||
for ($i=0; $i<45; $i++)
|
||||
{
|
||||
echo "<script language='JavaScript'>document.frminstall2.status_bar.value += '■';</script>\n";
|
||||
flush();
|
||||
usleep(500);
|
||||
usleep(500);
|
||||
}
|
||||
|
||||
echo "<script>document.frminstall2.job1.value='전체 테이블 생성 완료';</script>";
|
||||
flush(); usleep(50000);
|
||||
flush(); usleep(50000);
|
||||
|
||||
$read_point = -1;
|
||||
$write_point = 5;
|
||||
@ -181,7 +181,7 @@ $download_point = -20;
|
||||
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
// config 테이블 설정
|
||||
$sql = " insert into $g4[config_table]
|
||||
$sql = " insert into {$g4['config_table']}
|
||||
set cf_title = '그누보드4',
|
||||
cf_admin = '$admin_id',
|
||||
cf_use_point = '1',
|
||||
@ -236,28 +236,27 @@ $sql = " insert into $g4[config_table]
|
||||
mysql_query($sql) or die(mysql_error() . "<p>" . $sql);
|
||||
|
||||
// 운영자 회원가입
|
||||
$sql = " insert into $g4[member_table]
|
||||
$sql = " insert into {$g4['member_table']}
|
||||
set mb_id = '$admin_id',
|
||||
mb_password = PASSWORD('$admin_pass'),
|
||||
mb_name = '$admin_name',
|
||||
mb_nick = '$admin_name',
|
||||
mb_email = '$admin_email',
|
||||
mb_jumin = PASSWORD('1111111111118'),
|
||||
mb_level = '10',
|
||||
mb_mailling = '1',
|
||||
mb_open = '1',
|
||||
mb_email_certify = '$g4[time_ymdhis]',
|
||||
mb_datetime = '$g4[time_ymdhis]',
|
||||
mb_ip = '$_SERVER[REMOTE_ADDR]'
|
||||
mb_email_certify = '{$g4['time_ymdhis']}',
|
||||
mb_datetime = '{$g4['time_ymdhis']}',
|
||||
mb_ip = '$_SERVER[REMOTE_ADDR]'
|
||||
";
|
||||
@mysql_query($sql);
|
||||
|
||||
echo "<script>document.frminstall2.job2.value='DB설정 완료';</script>";
|
||||
flush(); usleep(50000);
|
||||
flush(); usleep(50000);
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
// DB 설정 파일 생성
|
||||
$file = "../data/dbconfig.php";
|
||||
$file = '../data/dbconfig.php';
|
||||
$f = @fopen($file, "w");
|
||||
|
||||
fwrite($f, "<?\n");
|
||||
@ -271,7 +270,7 @@ fclose($f);
|
||||
@chmod($file, 0606);
|
||||
echo "<script>document.frminstall2.job3.value='DB설정 파일 생성 완료';</script>";
|
||||
|
||||
flush(); usleep(50000);
|
||||
flush(); usleep(50000);
|
||||
|
||||
|
||||
// 1.00.09 - data/log 삽입
|
||||
@ -283,7 +282,7 @@ $dir_arr = array ("../data",
|
||||
"../data/session",
|
||||
"../data/$g4[cheditor4]",
|
||||
"../data/$g4[editor]");
|
||||
for ($i=0; $i<count($dir_arr); $i++)
|
||||
for ($i=0; $i<count($dir_arr); $i++)
|
||||
{
|
||||
@mkdir($dir_arr[$i], 0707);
|
||||
@chmod($dir_arr[$i], 0707);
|
||||
@ -293,7 +292,7 @@ for ($i=0; $i<count($dir_arr); $i++)
|
||||
$f = fopen("../data/.htaccess", "w");
|
||||
$str = <<<EOD
|
||||
<FilesMatch "\.(htaccess|htpasswd|[Pp][Hh][Pp]|[Pp]?[Hh][Tt][Mm][Ll]?|[Ii][Nn][Cc]|[Cc][Gg][Ii]|[Pp][Ll])">
|
||||
Order allow,deny
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
EOD;
|
||||
@ -309,7 +308,7 @@ sleep(1);
|
||||
|
||||
echo "<script>document.frminstall2.job4.value='필요한 Table, File, 디렉토리 생성을 모두 완료 하였습니다.';</script>";
|
||||
echo "<script>document.frminstall2.job5.value='* 메인화면에서 운영자 로그인을 한 후 운영자 화면으로 이동하여 환경설정을 변경해 주십시오.';</script>";
|
||||
flush(); usleep(50000);
|
||||
flush(); usleep(50000);
|
||||
?>
|
||||
|
||||
<script>document.frminstall2.btn_next.disabled = false;</script>
|
||||
|
||||
Reference in New Issue
Block a user