Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -314,7 +314,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff;
|
||||
#mb_login .login_id {position:absolute;top:26px;left:95px}
|
||||
#mb_login .login_pw {position:absolute;top:52px;left:95px}
|
||||
#mb_login .frm_input {display:block;margin:0 0 5px 80px}
|
||||
#mb_login .btn_submit {position:absolute;top:20px;left:335px;height:53px}
|
||||
#mb_login .btn_submit {position:absolute;top:20px;left:335px;height:49px}
|
||||
#mb_login section {margin:0 0 30px;padding:20px;border:1px solid #cfded8;background:#f7f7f2}
|
||||
#mb_login section div {text-align:right}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
$title = "그누보드4S 설치 3단계 중 1단계 라이센스 확인";
|
||||
$title = "그누보드4s 설치 3단계 중 1단계 라이센스 확인";
|
||||
include_once ('../config.php');
|
||||
include_once ('./install.inc.php');
|
||||
?>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
$data_path = '../'.G4_DATA_DIR;
|
||||
|
||||
if (!$title) $title = "그누보드4S 설치";
|
||||
if (!$title) $title = "그누보드4s 설치";
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
@ -13,17 +13,18 @@ if (!$title) $title = "그누보드4S 설치";
|
||||
<style>
|
||||
body {margin:0;padding:0;background:#f7f7f7}
|
||||
h1 {margin:50px auto 30px;width:540px;font-size:1.4em}
|
||||
h2 {font-size:1.2em}
|
||||
p {line-height:1.5em}
|
||||
table {width:100%;border-collapse:collapse;border-spacing:0;font-size:0.895em}
|
||||
table {width:100%;border:0;border-collapse:collapse;border-spacing:0;font-size:0.895em}
|
||||
caption {padding:0 0 20px;font-weight:bold;text-align:left}
|
||||
th,td {padding:5px;border:1px solid #ddd}
|
||||
th,td {padding:5px;border:0;border-top:1px solid #ddd;border-bottom:1px solid #ddd}
|
||||
th {text-align:left}
|
||||
td span {display:block;margin:0 0 5px;color:#666;font-size:0.9em}
|
||||
|
||||
#wrapper {margin:0 auto;padding:20px;width:500px;border:1px solid #eee;background:#fff}
|
||||
#wrapper {margin:0 auto 20px;padding:20px;width:500px;border:1px solid #eee;background:#fff}
|
||||
|
||||
#idx_license {padding:10px;width:480px;height:300px;border:1px solid #ccc;background:#000;color:#fff}
|
||||
#idx_agree {padding:20px;font-weight:bold;text-align:center}
|
||||
#idx_agree {padding:0 20px 20px;font-weight:bold;text-align:center}
|
||||
|
||||
#btn_confirm {text-align:center}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
$title = "그누보드4S 설치 3단계 중 2단계 설정";
|
||||
$title = "그누보드4s 설치 3단계 중 2단계 설정";
|
||||
include_once ('../config.php');
|
||||
include_once ('./install.inc.php');
|
||||
|
||||
@ -11,9 +11,8 @@ 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=utf-8">'.PHP_EOL;
|
||||
echo '<div>라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.</div>'.PHP_EOL;
|
||||
echo '<div><a href="./">뒤로가기</a></div>'.PHP_EOL;
|
||||
echo "<div>라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.</div>".PHP_EOL;
|
||||
echo "<div><a href=\"./\">뒤로가기</a></div>".PHP_EOL;
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@ -104,8 +103,8 @@ if ($_POST['agree'] != '동의함') {
|
||||
</div>
|
||||
|
||||
<p class="outside">
|
||||
<strong class="st_strong">주의! 이미 그누보드4S가 존재한다면 DB 자료가 망실되므로 주의하십시오.</strong><br>
|
||||
주의사항을 읽으셨다면 다음을 눌러 설치를 계속하십시오.
|
||||
<strong class="st_strong">주의! 이미 그누보드4s가 존재한다면 DB 자료가 망실되므로 주의하십시오.</strong><br>
|
||||
주의사항을 이해하고, 새로 설치하시려면 다음을 눌러 설치를 계속하십시오.
|
||||
</p>
|
||||
|
||||
<div id="btn_confirm">
|
||||
|
||||
@ -42,14 +42,10 @@ if (!$select_db) {
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>그누보드4 설치 (3/3) - DB</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div>그누보드4S 설치시작</div>
|
||||
<h2>그누보드4s 설치가 시작되었습니다.</h2>
|
||||
|
||||
<ol>
|
||||
<?
|
||||
// 테이블 생성 ------------------------------------
|
||||
$file = implode('', file('./gnuboard4s.sql'));
|
||||
@ -63,9 +59,11 @@ for ($i=0; $i<count($f); $i++) {
|
||||
mysql_query($f[$i]) or die(mysql_error());
|
||||
}
|
||||
// 테이블 생성 ------------------------------------
|
||||
?>
|
||||
|
||||
echo '<div>전체 테이블 생성 완료</div>';
|
||||
<li>전체 테이블 생성 완료</li>
|
||||
|
||||
<?
|
||||
$read_point = -1;
|
||||
$write_point = 5;
|
||||
$comment_point = 1;
|
||||
@ -74,7 +72,7 @@ $download_point = -20;
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
// config 테이블 설정
|
||||
$sql = " insert into `{$table_prefix}config`
|
||||
set cf_title = '그누보드4S',
|
||||
set cf_title = '그누보드4s',
|
||||
cf_admin = '$admin_id',
|
||||
cf_use_point = '1',
|
||||
cf_use_norobot = '1',
|
||||
@ -126,28 +124,31 @@ $sql = " insert into `{$table_prefix}config`
|
||||
cf_stipulation = '해당 홈페이지에 맞는 회원가입약관을 입력합니다.',
|
||||
cf_privacy = '해당 홈페이지에 맞는 개인정보취급방침을 입력합니다.'
|
||||
";
|
||||
>>>>>>> 58918b3528c5945215be90227f5d74759b172042
|
||||
mysql_query($sql) or die(mysql_error() . "<p>" . $sql);
|
||||
|
||||
// 운영자 회원가입
|
||||
// 관리자 회원가입
|
||||
$sql = " insert into `{$table_prefix}member`
|
||||
set mb_id = '$admin_id',
|
||||
mb_password = PASSWORD('$admin_pass'),
|
||||
mb_name = '$admin_name',
|
||||
mb_nick = '$admin_name',
|
||||
mb_email = '$admin_email',
|
||||
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_password = PASSWORD('$admin_pass'),
|
||||
mb_name = '$admin_name',
|
||||
mb_nick = '$admin_name',
|
||||
mb_email = '$admin_email',
|
||||
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']}'
|
||||
";
|
||||
@mysql_query($sql);
|
||||
?>
|
||||
|
||||
echo '<div>DB설정 완료</div>';
|
||||
<li>DB설정 완료</li>
|
||||
|
||||
<?
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// 디렉토리 생성
|
||||
$dir_arr = array (
|
||||
$data_path.'/cache',
|
||||
@ -162,8 +163,11 @@ for ($i=0; $i<count($dir_arr); $i++) {
|
||||
@mkdir($dir_arr[$i], 0707);
|
||||
@chmod($dir_arr[$i], 0707);
|
||||
}
|
||||
?>
|
||||
|
||||
echo '<div>데이터 디렉토리 생성 완료</div>';
|
||||
<li>데이터 디렉토리 생성 완료</li>
|
||||
|
||||
<?
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
// DB 설정 파일 생성
|
||||
@ -203,8 +207,11 @@ fwrite($f, "?>");
|
||||
|
||||
fclose($f);
|
||||
@chmod($file, 0606);
|
||||
echo "<div>DB설정 파일 생성 완료 ($file)";
|
||||
?>
|
||||
|
||||
<li>DB설정 파일 생성 완료 (<?=$file?>)</li>
|
||||
|
||||
<?
|
||||
// data 디렉토리 및 하위 디렉토리에서는 .htaccess .htpasswd .php .phtml .html .htm .inc .cgi .pl 파일을 실행할수 없게함.
|
||||
$f = fopen($data_path.'/.htaccess', 'w');
|
||||
$str = <<<EOD
|
||||
@ -216,11 +223,23 @@ EOD;
|
||||
fwrite($f, $str);
|
||||
fclose($f);
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
echo '<div>필요한 DB Table, File, 디렉토리 생성을 모두 완료 하였습니다.</div>'.PHP_EOL;
|
||||
echo '<div>메인화면에서 운영자 로그인을 한 후 운영자 화면으로 이동하여 환경설정을 변경해 주십시오.</div>';
|
||||
echo '<div><a href="../index.php">메인화면으로 가기</a></div>';
|
||||
?>
|
||||
</ol>
|
||||
|
||||
<p class="st_strong">축하합니다. 그누보드4s 설치가 완료되었습니다.</p>
|
||||
|
||||
<h2>환경설정 변경은 다음의 과정을 따르십시오.</h2>
|
||||
|
||||
<ol>
|
||||
<li>메인화면으로 이동</li>
|
||||
<li>관리자 로그인</li>
|
||||
<li>관리자 모드 접속</li>
|
||||
<li>환경설정 메뉴의 기본환경설정 페이지로 이동</li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="btn_confirm"><a href="../index.php">메인화면으로 가기</a></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user