Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -53,7 +53,7 @@ if ($w == '') {
|
||||
$board['bo_mobile_gallery_cols'] = 2;
|
||||
$board['bo_mobile_gallery_width'] = 160;
|
||||
$board['bo_mobile_gallery_height'] = 120;
|
||||
$board['bo_table_width'] = 97;
|
||||
$board['bo_table_width'] = 100;
|
||||
$board['bo_page_rows'] = $config['cf_page_rows'];
|
||||
$board['bo_subject_len'] = 60;
|
||||
$board['bo_new'] = 24;
|
||||
@ -765,7 +765,7 @@ $pg_anchor = "<ul class=\"anchor\">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_table_width">게시판 테이블 폭<strong class="sound_only">필수</strong></label></th>
|
||||
<th scope="row"><label for="bo_table_width">게시판 폭<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?=help('100 이하는 %')?>
|
||||
<input type="text" id="bo_table_width" name="bo_table_width" class="required numeric frm_input" required value="<?=$board['bo_table_width']?>" size="4">
|
||||
|
||||
@ -475,7 +475,7 @@ $pg_anchor = "
|
||||
</td>
|
||||
<th scope="row"><label for="cf_prohibit_email">입력 금지 메일</label></th>
|
||||
<td>
|
||||
<?=help('hanmail.net과 같은 메일 주소는 입력을 못합니다. 엔터로 구분')?>
|
||||
<?=help('hotmail.com과 같은 메일 주소는 사용하지 못하도록 못합니다. 엔터로 구분')?>
|
||||
<textarea id="cf_prohibit_email" name="cf_prohibit_email" rows="5"><?=$config['cf_prohibit_email']?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -27,7 +27,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
회원 별명 : <?=$mb_nick?><br>
|
||||
추천인아이디 : <?=$mb_recommend?>
|
||||
</p>
|
||||
<a href="<?=G4_BBS_URL?>/member_form.php?w=u&mb_id=<?=$mb_id?>" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center">관리자에서 회원정보 확인하기</a>
|
||||
<a href="<?=G4_ADMIN_URL?>/member_form.php?w=u&mb_id=<?=$mb_id?>" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center">관리자에서 회원정보 확인하기</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -42,7 +43,10 @@ td span {display:block;margin:0 0 5px;color:#666;font-size:0.9em}
|
||||
$dbconfig_file = $data_path.'/'.G4_DBCONFIG_FILE;
|
||||
if (file_exists($dbconfig_file)) {
|
||||
?>
|
||||
<p>프로그램이 이미 설치되어 있습니다.<br />새로 설치하시려면 '.$dbconfig_file.' 파일을 삭제후 설치하시기 바랍니다.</p>
|
||||
<p>프로그램이 이미 설치되어 있습니다.<br />새로 설치하시려면 다음 파일을 삭제 하신 후 새로고침 하십시오.</p>
|
||||
<ul>
|
||||
<li><?=$dbconfig_file?></li>
|
||||
</ul>
|
||||
<?
|
||||
exit;
|
||||
}
|
||||
|
||||
@ -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 = '그누보드4',
|
||||
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