TABLE=$sound_only?>
-
+ =$readonly?> class="frm_input =$reaonly?> =$required?> =$required_valid?>" maxlength="20">
if ($w == '') { ?>
영문자, 숫자, _ 만 가능 (공백없이 20자 이내)
} else { ?>
@@ -549,7 +566,7 @@ $pg_anchor = "
파일 업로드 용량필수
- =help('최대 '.ini_get("upload_max_filesize").' 이하 업로드 가능, 1 MB = 1,024,768 bytes')?>
+ =help('최대 '.ini_get("upload_max_filesize").' 이하 업로드 가능, 1 MB = 1,048,576 bytes')?>
업로드 파일 한개당 bytes 이하
@@ -752,6 +769,30 @@ $pg_anchor = "
+ 모바일 상단 내용
+
+ =editor_html("bo_mobile_content_head", $board['bo_mobile_content_head']);?>
+
+
+
+ 그룹적용
+
+ 전체적용
+
+
+
+ 모바일 하단 내용
+
+ =editor_html("bo_mobile_content_tail", $board['bo_mobile_content_tail']);?>
+
+
+
+ 그룹적용
+
+ 전체적용
+
+
+
글쓰기 기본 내용
@@ -776,7 +817,20 @@ $pg_anchor = "
-
+
+ 모바일 제목 길이필수
+
+ =help('목록에서의 제목 글자수. 잘리는 글은 … 로 표시')?>
+
+
+
+
+ 그룹적용
+
+ 전체적용
+
+
+
페이지당 목록 수필수
@@ -788,6 +842,18 @@ $pg_anchor = "
+
+ 모바일 페이지당 목록 수필수
+
+
+
+
+
+ 그룹적용
+
+ 전체적용
+
+
갤러리 이미지 수필수
@@ -1079,6 +1145,10 @@ $pg_anchor = "
+
+ 작성하신 내용을 제출하시려면 확인 버튼을, 작성을 취소하고 목록으로 돌아가시려면 목록 링크를 누르세요.
+ if ($w == 'u') { ?> 게시판을 복사하시려면 게시판복사 링크를 누르세요. } ?>
+
목록
if ($w == 'u') { ?>
게시판복사 }?>
@@ -1116,6 +1186,8 @@ function fboardform_submit(f)
{
=get_editor_js("bo_content_head");?>
=get_editor_js("bo_content_tail");?>
+ =get_editor_js("bo_mobile_content_head");?>
+ =get_editor_js("bo_mobile_content_tail");?>
if (parseInt(f.bo_count_modify.value) < 1) {
alert("원글 수정 불가 댓글수는 1 이상 입력하셔야 합니다.");
diff --git a/adm/board_form_update.php b/adm/board_form_update.php
index 4f8e67210..9fdfd4518 100644
--- a/adm/board_form_update.php
+++ b/adm/board_form_update.php
@@ -87,7 +87,9 @@ $sql_common = " gr_id = '{$_POST['gr_id']}',
bo_use_email = '{$_POST['bo_use_email']}',
bo_table_width = '{$_POST['bo_table_width']}',
bo_subject_len = '{$_POST['bo_subject_len']}',
+ bo_mobile_subject_len = '{$_POST['bo_mobile_subject_len']}',
bo_page_rows = '{$_POST['bo_page_rows']}',
+ bo_mobile_page_rows = '{$_POST['bo_mobile_page_rows']}',
bo_new = '{$_POST['bo_new']}',
bo_hot = '{$_POST['bo_hot']}',
bo_image_width = '{$_POST['bo_image_width']}',
@@ -97,6 +99,8 @@ $sql_common = " gr_id = '{$_POST['gr_id']}',
bo_include_tail = '{$_POST['bo_include_tail']}',
bo_content_head = '{$_POST['bo_content_head']}',
bo_content_tail = '{$_POST['bo_content_tail']}',
+ bo_mobile_content_head = '{$_POST['bo_mobile_content_head']}',
+ bo_mobile_content_tail = '{$_POST['bo_mobile_content_tail']}',
bo_insert_content = '{$_POST['bo_insert_content']}',
bo_gallery_cols = '{$_POST['bo_gallery_cols']}',
bo_gallery_width = '{$_POST['bo_gallery_width']}',
@@ -267,7 +271,9 @@ if (is_checked('chk_grp_mobile_gallery_width')) $grp_fields .= " , bo_mobile_gal
if (is_checked('chk_grp_mobile_gallery_height'))$grp_fields .= " , bo_mobile_gallery_height = '{$bo_mobile_gallery_height}' ";
if (is_checked('chk_grp_table_width')) $grp_fields .= " , bo_table_width = '{$bo_table_width}' ";
if (is_checked('chk_grp_page_rows')) $grp_fields .= " , bo_page_rows = '{$bo_page_rows}' ";
+if (is_checked('chk_grp_mobile_page_rows')) $grp_fields .= " , bo_mobile_page_rows = '{$bo_mobile_page_rows}' ";
if (is_checked('chk_grp_subject_len')) $grp_fields .= " , bo_subject_len = '{$bo_subject_len}' ";
+if (is_checked('chk_grp_mobile_subject_len')) $grp_fields .= " , bo_mobile_subject_len = '{$bo_mobile_subject_len}' ";
if (is_checked('chk_grp_new')) $grp_fields .= " , bo_new = '{$bo_new}' ";
if (is_checked('chk_grp_hot')) $grp_fields .= " , bo_hot = '{$bo_hot}' ";
if (is_checked('chk_grp_image_width')) $grp_fields .= " , bo_image_width = '{$bo_image_width}' ";
@@ -283,6 +289,8 @@ if (is_checked('chk_grp_include_head')) $grp_fields .= " , bo_include_he
if (is_checked('chk_grp_include_tail')) $grp_fields .= " , bo_include_tail = '{$bo_include_tail}' ";
if (is_checked('chk_grp_content_head')) $grp_fields .= " , bo_content_head = '{$bo_content_head}' ";
if (is_checked('chk_grp_content_tail')) $grp_fields .= " , bo_content_tail = '{$bo_content_tail}' ";
+if (is_checked('chk_grp_mobile_content_head')) $grp_fields .= " , bo_mobile_content_head = '{$bo_mobile_content_head}' ";
+if (is_checked('chk_grp_mobile_content_tail')) $grp_fields .= " , bo_mobile_content_tail = '{$bo_mobile_content_tail}' ";
if (is_checked('chk_grp_insert_content')) $grp_fields .= " , bo_insert_content = '{$bo_insert_content}' ";
if (is_checked('chk_grp_use_search')) $grp_fields .= " , bo_use_search = '{$bo_use_search}' ";
if (is_checked('chk_grp_order')) $grp_fields .= " , bo_order = '{$bo_order}' ";
@@ -345,7 +353,9 @@ if (is_checked('chk_all_mobile_gallery_width')) $all_fields .= " , bo_mobile_gal
if (is_checked('chk_all_mobile_gallery_height'))$all_fields .= " , bo_mobile_gallery_height = '{$bo_mobile_gallery_height}' ";
if (is_checked('chk_all_table_width')) $all_fields .= " , bo_table_width = '{$bo_table_width}' ";
if (is_checked('chk_all_page_rows')) $all_fields .= " , bo_page_rows = '{$bo_page_rows}' ";
+if (is_checked('chk_all_mobile_page_rows')) $all_fields .= " , bo_mobile_page_rows = '{$bo_mobile_page_rows}' ";
if (is_checked('chk_all_subject_len')) $all_fields .= " , bo_subject_len = '{$bo_subject_len}' ";
+if (is_checked('chk_all_mobile_subject_len')) $all_fields .= " , bo_mobile_subject_len = '{$bo_mobile_subject_len}' ";
if (is_checked('chk_all_new')) $all_fields .= " , bo_new = '{$bo_new}' ";
if (is_checked('chk_all_hot')) $all_fields .= " , bo_hot = '{$bo_hot}' ";
if (is_checked('chk_all_image_width')) $all_fields .= " , bo_image_width = '{$bo_image_width}' ";
@@ -361,6 +371,8 @@ if (is_checked('chk_all_include_head')) $all_fields .= " , bo_include_he
if (is_checked('chk_all_include_tail')) $all_fields .= " , bo_include_tail = '{$bo_include_tail}' ";
if (is_checked('chk_all_content_head')) $all_fields .= " , bo_content_head = '{$bo_content_head}' ";
if (is_checked('chk_all_content_tail')) $all_fields .= " , bo_content_tail = '{$bo_content_tail}' ";
+if (is_checked('chk_all_mobile_content_head')) $all_fields .= " , bo_mobile_content_head = '{$bo_mobile_content_head}' ";
+if (is_checked('chk_all_mobile_content_tail')) $all_fields .= " , bo_mobile_content_tail = '{$bo_mobile_content_tail}' ";
if (is_checked('chk_all_insert_content')) $all_fields .= " , bo_insert_content = '{$bo_insert_content}' ";
if (is_checked('chk_all_use_search')) $all_fields .= " , bo_use_search = '{$bo_use_search}' ";
if (is_checked('chk_all_order')) $all_fields .= " , bo_order = '{$bo_order}' ";
diff --git a/adm/board_list.php b/adm/board_list.php
index 77a5e4c2a..9abe90d01 100644
--- a/adm/board_list.php
+++ b/adm/board_list.php
@@ -61,7 +61,7 @@ $colspan = 15;
게시판 검색
=$listall?>
- 생성된 게시판 수 =number_format($total_count)?>개
+ 생성된 게시판수 =number_format($total_count)?>개
>TABLE
diff --git a/adm/boardgroup_form.php b/adm/boardgroup_form.php
index 5103767ea..cece586c4 100644
--- a/adm/boardgroup_form.php
+++ b/adm/boardgroup_form.php
@@ -136,6 +136,9 @@ include_once('./admin.head.php');
diff --git a/adm/cache_file_delete.php b/adm/cache_file_delete.php
index 854923d4c..fd8738a76 100644
--- a/adm/cache_file_delete.php
+++ b/adm/cache_file_delete.php
@@ -1,52 +1,47 @@
-
-$sub_menu = "100900";
-include_once("./_common.php");
+
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
-
+ 최신글 캐시디렉토리를 열지못했습니다.";
+ echo '
캐시디렉토리를 열지못했습니다.
';
}
$cnt=0;
- echo "
'.PHP_EOL;
+ echo '
최신글 캐시파일 '.$cnt.'건 삭제가 완료됐습니다. 프로그램의 실행을 끝마치셔도 좋습니다.
'.PHP_EOL;
?>
\ No newline at end of file
diff --git a/adm/config_form.php b/adm/config_form.php
index 65effaf80..06b58c975 100644
--- a/adm/config_form.php
+++ b/adm/config_form.php
@@ -41,6 +41,14 @@ if(!isset($config['cf_mobile_pages'])) {
sql_query(" UPDATE `{$g4['config_table']}` SET cf_mobile_pages = '5' ", TRUE);
}
+// uniqid 테이블이 없을 경우 생성
+if(!sql_query(" select uq_id from {$g4['uniqid_table']} limit 1 ", false)) {
+ sql_query(" CREATE TABLE IF NOT EXISTS `{$g4['uniqid_table']}` (
+ `uq_id` bigint(20) unsigned NOT NULL,
+ PRIMARY KEY (`uq_id`)
+ ) ", false);
+}
+
$g4['title'] = '환경설정';
include_once ('./admin.head.php');
@@ -490,7 +498,7 @@ $pg_anchor = "
입력 금지 메일
- =help('hotmail.com과 같은 메일 주소는 사용하지 못하도록 못합니다. 엔터로 구분')?>
+ =help('입력 받지 않을 도메인을 지정합니다. 엔터로 구분 ex) hotmail.com')?>
@@ -673,6 +681,9 @@ $pg_anchor = "
diff --git a/adm/gcaptcha_file_delete.php b/adm/gcaptcha_file_delete.php
new file mode 100644
index 000000000..3a9930550
--- /dev/null
+++ b/adm/gcaptcha_file_delete.php
@@ -0,0 +1,52 @@
+
+
+
+
+ 완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
+
+ 캐시디렉토리를 열지못했습니다.';
+ }
+
+ $cnt=0;
+ echo '
'.PHP_EOL;
+
+ $files = glob(G4_DATA_PATH.'/cache/gcaptcha-*');
+ if (is_array($files)) {
+ $before_time = G4_SERVER_TIME - 3600; // 한시간전
+ foreach ($files as $gcaptcha_file) {
+ $modification_time = filemtime($gcaptcha_file); // 파일접근시간
+
+ if ($modification_time > $before_time) continue;
+
+ $cnt++;
+ unlink($gcaptcha_file);
+ echo ''.$gcaptcha_file.' '.PHP_EOL;
+
+ flush();
+
+ if ($cnt%10==0)
+ echo PHP_EOL;
+ }
+ }
+
+ echo '완료됨 '.PHP_EOL;
+ echo '
캡챠파일 '.$cnt.'건의 삭제가 완료됐습니다. 프로그램의 실행을 끝마치셔도 좋습니다.
'.PHP_EOL;
+ ?>
+
+
+
\ No newline at end of file
diff --git a/adm/mail_form.php b/adm/mail_form.php
index 8d8ca80d4..d6b003e9b 100644
--- a/adm/mail_form.php
+++ b/adm/mail_form.php
@@ -50,6 +50,9 @@ include_once('./admin.head.php');
diff --git a/adm/mail_list.php b/adm/mail_list.php
index f748818a3..2cc4eeb92 100644
--- a/adm/mail_list.php
+++ b/adm/mail_list.php
@@ -76,7 +76,7 @@ $colspan = 6;
- 선택삭제
+ 선택삭제
diff --git a/adm/mail_select_form.php b/adm/mail_select_form.php
index a750129af..836da76e1 100644
--- a/adm/mail_select_form.php
+++ b/adm/mail_select_form.php
@@ -110,6 +110,9 @@ include_once('./admin.head.php');
diff --git a/adm/member_form.php b/adm/member_form.php
index 5c38d498f..201409545 100644
--- a/adm/member_form.php
+++ b/adm/member_form.php
@@ -147,11 +147,17 @@ include_once('./admin.head.php');
주소
- -
-
- 우편번호 검색
-
+ -
+
+
+
상세주소 입력
+
@@ -276,6 +282,9 @@ include_once('./admin.head.php');
diff --git a/adm/member_form_update.php b/adm/member_form_update.php
index 9b3d5c9b4..b0a23581e 100644
--- a/adm/member_form_update.php
+++ b/adm/member_form_update.php
@@ -94,6 +94,12 @@ else if ($w == 'u')
if ($_POST['mb_id'] == $member['mb_id'] && $_POST['mb_level'] != $mb['mb_level'])
alert($mb['mb_id'].' : 로그인 중인 관리자 레벨은 수정 할 수 없습니다.');
+ // 이메일중복체크
+ $sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '{$_POST['mb_email']}' and mb_id <> '$mb_id' ";
+ $row = sql_fetch($sql);
+ if($row['cnt'])
+ alert('다른 회원이 사용 중인 이메일입니다.');
+
$mb_dir = substr($mb_id,0,2);
// 회원 아이콘 삭제
diff --git a/adm/poll_form.php b/adm/poll_form.php
index 0642bf178..935b3bdb7 100644
--- a/adm/poll_form.php
+++ b/adm/poll_form.php
@@ -99,6 +99,9 @@ include_once('./admin.head.php');
diff --git a/adm/poll_list.php b/adm/poll_list.php
index b828c347a..f74f69985 100644
--- a/adm/poll_list.php
+++ b/adm/poll_list.php
@@ -128,7 +128,7 @@ $colspan = 6;
- 선택삭제
+ 선택삭제
diff --git a/adm/popular_list.php b/adm/popular_list.php
index 1ff5ebac1..6eb27eecd 100644
--- a/adm/popular_list.php
+++ b/adm/popular_list.php
@@ -134,7 +134,7 @@ var list_delete_php = 'popular_list.php';
- 선택삭제
+ 선택삭제
}?>
diff --git a/bbs/alert.php b/bbs/alert.php
index 83d8bf919..2667154be 100644
--- a/bbs/alert.php
+++ b/bbs/alert.php
@@ -5,9 +5,9 @@ global $lo_url;
include_once('./_common.php');
if($error) {
- $g4['title'] = "오류가 있습니다.";
+ $g4['title'] = "오류안내 페이지";
} else {
- $g4['title'] = "내용을 확인해 주세요.";
+ $g4['title'] = "결과안내 페이지";
}
include_once(G4_PATH.'/head.sub.php');
// 필수 입력입니다.
diff --git a/bbs/board.php b/bbs/board.php
index 9098c359c..013eff092 100644
--- a/bbs/board.php
+++ b/bbs/board.php
@@ -28,7 +28,7 @@ if (isset($wr_id) && $wr_id) {
if (isset($group['gr_use_access']) && $group['gr_use_access']) {
if ($is_guest) {
$msg = "비회원은 이 게시판에 접근할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.";
- alert($msg, './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
+ alert($msg, './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
}
// 그룹관리자 이상이라면 통과
@@ -49,7 +49,7 @@ if (isset($wr_id) && $wr_id) {
if ($is_member)
alert('글을 읽을 권한이 없습니다.', G4_URL);
else
- alert('글을 읽을 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
+ alert('글을 읽을 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
}
// 자신의 글이거나 관리자라면 통과
@@ -112,24 +112,27 @@ if (isset($wr_id) && $wr_id) {
set_session($ss_name, TRUE);
}
- $g4['title'] = strip_tags(conv_subject($write['wr_subject'], 255));
+ $g4['title'] = strip_tags(conv_subject($write['wr_subject'], 255))." > ".$board['bo_subject'];
} else {
if ($member['mb_level'] < $board['bo_list_level']) {
if ($member['mb_id'])
alert('목록을 볼 권한이 없습니다.', G4_URL);
else
- alert('목록을 볼 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
+ alert('목록을 볼 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
}
if (!isset($page) || (isset($page) && $page == 0)) $page = 1;
- $g4['title'] = $board['bo_subject'];
+ $g4['title'] = $board['bo_subject']." ".$page." 페이지";
}
include_once(G4_PATH.'/head.sub.php');
$width = $board['bo_table_width'];
-if ($width <= 100) $width .= '%';
+if ($width <= 100)
+ $width .= '%';
+else
+ $width .='px';
// IP보이기 사용 여부
$ip = "";
diff --git a/bbs/board_head.php b/bbs/board_head.php
index 7a33de9b0..8ff4fcdea 100644
--- a/bbs/board_head.php
+++ b/bbs/board_head.php
@@ -1,21 +1,13 @@
-if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-
-// 게시판 관리의 상단 파일 경로
-if ($board['bo_include_head']) {
- @include ($board['bo_include_head']);
-}
-
-// 게시판 관리의 상단 이미지 경로
-if ($board['bo_image_head']) {
- echo ' ';
-}
+if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 게시판 관리의 상단 내용
if (G4_IS_MOBILE) {
// 모바일의 경우 설정을 따르지 않는다.
include_once('./_head.php');
-} else if ($board['bo_content_head']) {
- echo stripslashes($board['bo_content_head']);
+ echo stripslashes($board['bo_mobile_content_head']);
+} else {
+ @include ($board['bo_include_head']);
+ echo stripslashes($board['bo_content_head']);
}
?>
\ No newline at end of file
diff --git a/bbs/board_tail.php b/bbs/board_tail.php
index 58b326b6a..56985cd8a 100644
--- a/bbs/board_tail.php
+++ b/bbs/board_tail.php
@@ -1,21 +1,13 @@
-if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-
-// 게시판 관리의 하단 내용
-if ($board['bo_content_tail']) {
- echo stripslashes($board['bo_content_tail']);
-}
-
-// 게시판 관리의 하단 이미지 경로
-if ($board['bo_image_tail']) {
- echo ' ';
-}
+if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 게시판 관리의 하단 파일 경로
if (G4_IS_MOBILE) {
+ echo stripslashes($board['bo_mobile_content_tail']);
// 모바일의 경우 설정을 따르지 않는다.
include_once('./_tail.php');
} else if ($board['bo_include_tail']) {
- @include ($board['bo_include_tail']);
+ echo stripslashes($board['bo_content_tail']);
+ @include ($board['bo_include_tail']);
}
?>
\ No newline at end of file
diff --git a/bbs/delete_comment.php b/bbs/delete_comment.php
index d8cf767d2..b2e08afbd 100644
--- a/bbs/delete_comment.php
+++ b/bbs/delete_comment.php
@@ -4,7 +4,7 @@ include_once('./_common.php');
if ($is_admin)
{
- if (!($token && get_session("ss_delete_token") == $token))
+ if (!($token && get_session("ss_delete_token") == $token))
alert('토큰 에러로 삭제 불가합니다.');
}
@@ -13,70 +13,70 @@ if ($is_admin)
$write = sql_fetch(" select * from {$write_table} where wr_id = '{$comment_id}' ");
-if (!$write[wr_id] || !$write[wr_is_comment])
+if (!$write['wr_id'] || !$write['wr_is_comment'])
alert('등록된 코멘트가 없거나 코멘트 글이 아닙니다.');
if ($is_admin == 'super') // 최고관리자 통과
;
else if ($is_admin == 'group') { // 그룹관리자
- $mb = get_member($write[mb_id]);
- if ($member[mb_id] == $group[gr_admin]) { // 자신이 관리하는 그룹인가?
- if ($member[mb_level] >= $mb[mb_level]) // 자신의 레벨이 크거나 같다면 통과
+ $mb = get_member($write['mb_id']);
+ if ($member['mb_id'] == $group['gr_admin']) { // 자신이 관리하는 그룹인가?
+ if ($member['mb_level'] >= $mb['mb_level']) // 자신의 레벨이 크거나 같다면 통과
;
else
alert('그룹관리자의 권한보다 높은 회원의 코멘트이므로 삭제할 수 없습니다.');
} else
alert('자신이 관리하는 그룹의 게시판이 아니므로 코멘트를 삭제할 수 없습니다.');
} else if ($is_admin == 'board') { // 게시판관리자이면
- $mb = get_member($write[mb_id]);
- if ($member[mb_id] == $board[bo_admin]) { // 자신이 관리하는 게시판인가?
- if ($member[mb_level] >= $mb[mb_level]) // 자신의 레벨이 크거나 같다면 통과
+ $mb = get_member($write['mb_id']);
+ if ($member['mb_id'] == $board['bo_admin']) { // 자신이 관리하는 게시판인가?
+ if ($member['mb_level'] >= $mb['mb_level']) // 자신의 레벨이 크거나 같다면 통과
;
else
alert('게시판관리자의 권한보다 높은 회원의 코멘트이므로 삭제할 수 없습니다.');
} else
alert('자신이 관리하는 게시판이 아니므로 코멘트를 삭제할 수 없습니다.');
-} else if ($member[mb_id]) {
- if ($member[mb_id] != $write[mb_id])
+} else if ($member['mb_id']) {
+ if ($member['mb_id'] != $write['mb_id'])
alert('자신의 글이 아니므로 삭제할 수 없습니다.');
} else {
- if (sql_password($wr_password) != $write[wr_password])
+ if (sql_password($wr_password) != $write['wr_password'])
alert('패스워드가 틀립니다.');
}
-$len = strlen($write[wr_comment_reply]);
-if ($len < 0) $len = 0;
-$comment_reply = substr($write[wr_comment_reply], 0, $len);
+$len = strlen($write['wr_comment_reply']);
+if ($len < 0) $len = 0;
+$comment_reply = substr($write['wr_comment_reply'], 0, $len);
$sql = " select count(*) as cnt from {$write_table}
where wr_comment_reply like '{$comment_reply}%'
and wr_id <> '{$comment_id}'
and wr_parent = '{$write[wr_parent]}'
- and wr_comment = '{$write[wr_comment]}'
+ and wr_comment = '{$write[wr_comment]}'
and wr_is_comment = 1 ";
$row = sql_fetch($sql);
-if ($row[cnt] && !$is_admin)
+if ($row['cnt'] && !$is_admin)
alert('이 코멘트와 관련된 답변코멘트가 존재하므로 삭제 할 수 없습니다.');
// 코멘트 삭제
-if (!delete_point($write[mb_id], $bo_table, $comment_id, '코멘트'))
- insert_point($write[mb_id], $board[bo_comment_point] * (-1), "{$board[bo_subject]} {$write[wr_parent]}-{$comment_id} 코멘트삭제");
+if (!delete_point($write['mb_id'], $bo_table, $comment_id, '코멘트'))
+ insert_point($write['mb_id'], $board['bo_comment_point'] * (-1), "{$board['bo_subject']} {$write['wr_parent']}-{$comment_id} 코멘트삭제");
// 코멘트 삭제
sql_query(" delete from {$write_table} where wr_id = '{$comment_id}' ");
// 코멘트가 삭제되므로 해당 게시물에 대한 최근 시간을 다시 얻는다.
-$sql = " select max(wr_datetime) as wr_last from {$write_table} where wr_parent = '{$write[wr_parent]}' ";
+$sql = " select max(wr_datetime) as wr_last from {$write_table} where wr_parent = '{$write['wr_parent']}' ";
$row = sql_fetch($sql);
-
+
// 원글의 코멘트 숫자를 감소
-sql_query(" update {$write_table} set wr_comment = wr_comment - 1, wr_last = '{$row[wr_last]}' where wr_id = '{$write[wr_parent]}' ");
+sql_query(" update {$write_table} set wr_comment = wr_comment - 1, wr_last = '{$row['wr_last']}' where wr_id = '{$write['wr_parent']}' ");
// 코멘트 숫자 감소
-sql_query(" update {$g4[board_table]} set bo_count_comment = bo_count_comment - 1 where bo_table = '{$bo_table}' ");
+sql_query(" update {$g4['board_table']} set bo_count_comment = bo_count_comment - 1 where bo_table = '{$bo_table}' ");
// 새글 삭제
-sql_query(" delete from {$g4[board_new_table]} where bo_table = '{$bo_table}' and wr_id = '{$comment_id}' ");
+sql_query(" delete from {$g4['board_new_table']} where bo_table = '{$bo_table}' and wr_id = '{$comment_id}' ");
// 사용자 코드 실행
@include_once($board_skin_path.'/delete_comment.skin.php');
@@ -84,5 +84,5 @@ sql_query(" delete from {$g4[board_new_table]} where bo_table = '{$bo_table}' an
delete_cache_latest($bo_table);
-goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$write[wr_parent].'&page='.$page. $qstr);
+goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$write['wr_parent'].'&page='.$page. $qstr);
?>
diff --git a/bbs/download.php b/bbs/download.php
index 2fc09500f..0535b2496 100644
--- a/bbs/download.php
+++ b/bbs/download.php
@@ -69,10 +69,7 @@ if (!get_session($ss_name))
$g4['title'] = '다운로드 > '.conv_subject($write['wr_subject'], 255);
-if (preg_match("/^utf/i", $g4['charset']))
- $original = urlencode($file['bf_source']);
-else
- $original = $file['bf_source'];
+$original = urlencode($file['bf_source']);
@include_once($board_skin_path.'/download.tail.skin.php');
diff --git a/bbs/email_certify.php b/bbs/email_certify.php
index f689866a1..31c816d82 100644
--- a/bbs/email_certify.php
+++ b/bbs/email_certify.php
@@ -1,21 +1,21 @@
include_once('./_common.php');
-$sql = " select mb_id, mb_email, mb_datetime from {$g4[member_table]} where mb_id = '{$mb_id}' ";
+$sql = " select mb_id, mb_email, mb_datetime from {$g4['member_table']} where mb_id = '{$mb_id}' ";
$row = sql_fetch($sql);
-if (!$row[mb_id])
- alert('존재하는 회원이 아닙니다.', G4_PATH);
+if (!$row['mb_id'])
+ alert('존재하는 회원이 아닙니다.', G4_URL);
-if ($mb_md5)
+if ($mb_md5)
{
- $tmp_md5 = md5($row[mb_id].$row[mb_email].$row[mb_datetime]);
- if ($mb_md5 == $tmp_md5)
+ $tmp_md5 = md5($row['mb_id'].$row['mb_email'].$row['mb_datetime']);
+ if ($mb_md5 == $tmp_md5)
{
- sql_query(" update {$g4[member_table]} set mb_email_certify = '".G4_TIME_YMDHIS."' where mb_id = '{$mb_id}' ");
+ sql_query(" update {$g4['member_table']} set mb_email_certify = '".G4_TIME_YMDHIS."' where mb_id = '{$mb_id}' ");
- alert('E-mail 인증 처리를 완료 하였습니다.', G4_PATH);
+ alert('E-mail 인증 처리를 완료 하였습니다.', G4_URL);
}
}
-alert('제대로 된 값이 넘어오지 않았습니다.', G4_PATH);
+alert('제대로 된 값이 넘어오지 않았습니다.', G4_URL);
?>
\ No newline at end of file
diff --git a/bbs/list.php b/bbs/list.php
index 0a80c3ec0..be5a04adc 100644
--- a/bbs/list.php
+++ b/bbs/list.php
@@ -52,9 +52,15 @@ if ($sca || $stx) {
$total_count = $board['bo_count_write'];
}
-$total_page = ceil($total_count / $board['bo_page_rows']); // 전체 페이지 계산
+if(G4_IS_MOBILE) {
+ $page_rows = $board['bo_mobile_page_rows'];
+} else {
+ $page_rows = $board['bo_page_rows'];
+}
+
+$total_page = ceil($total_count / $page_rows); // 전체 페이지 계산
if (!$page) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
-$from_record = ($page - 1) * $board['bo_page_rows']; // 시작 열을 구함
+$from_record = ($page - 1) * $page_rows; // 시작 열을 구함
// 관리자라면 CheckBox 보임
$is_checkbox = false;
@@ -90,9 +96,9 @@ if ($sst) {
}
if ($sca || $stx) {
- $sql = " select distinct wr_parent from {$write_table} where {$sql_search} {$sql_order} limit {$from_record}, {$board['bo_page_rows']} ";
+ $sql = " select distinct wr_parent from {$write_table} where {$sql_search} {$sql_order} limit {$from_record}, $page_rows ";
} else {
- $sql = " select * from {$write_table} where wr_is_comment = 0 {$sql_order} limit {$from_record}, {$board['bo_page_rows']} ";
+ $sql = " select * from {$write_table} where wr_is_comment = 0 {$sql_order} limit {$from_record}, $page_rows ";
}
$result = sql_query($sql);
@@ -111,7 +117,7 @@ if (!$sca && !$stx) {
if (!$row['wr_id']) continue;
- $list[$i] = get_list($row, $board, $board_skin_url, $board['bo_subject_len']);
+ $list[$i] = get_list($row, $board, $board_skin_url, G4_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
$list[$i]['is_notice'] = true;
$i++;
@@ -126,12 +132,12 @@ while ($row = sql_fetch_array($result))
if ($sca || $stx)
$row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' ");
- $list[$i] = get_list($row, $board, $board_skin_url, $board['bo_subject_len']);
+ $list[$i] = get_list($row, $board, $board_skin_url, G4_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
if (strstr($sfl, 'subject')) {
$list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
}
$list[$i]['is_notice'] = false;
- $list[$i]['num'] = $total_count - ($page - 1) * $board['bo_page_rows'] - $k;
+ $list[$i]['num'] = $total_count - ($page - 1) * $page_rows - $k;
$i++;
$k++;
diff --git a/bbs/password.php b/bbs/password.php
index e8e561fb4..287032410 100644
--- a/bbs/password.php
+++ b/bbs/password.php
@@ -6,21 +6,27 @@ $g4['title'] = '패스워드 입력';
switch ($w) {
case 'u' :
$action = './write.php';
+ $return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
break;
case 'd' :
$action = './delete.php';
+ $return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
break;
case 'x' :
$action = './delete_comment.php';
+ $row = sql_fetch(" select wr_parent from $write_table where wr_id = '$comment_id' ");
+ $return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$row['wr_parent'];
break;
case 's' :
// 패스워드 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
- else
+ else {
$action = './password_check.php';
+ $return_url = './board.php?bo_table='.$bo_table;
+ }
break;
- default :
+ default :
alert('w 값이 제대로 넘어오지 않았습니다.');
}
diff --git a/bbs/password_lost_certify.php b/bbs/password_lost_certify.php
index 847a5e7bf..7a969e94c 100644
--- a/bbs/password_lost_certify.php
+++ b/bbs/password_lost_certify.php
@@ -19,7 +19,7 @@ sql_query(" update {$g4['member_table']} set mb_lost_certify = '' where mb_no =
// 변경될 패스워드가 넘어와야하고 저장된 변경패스워드를 md5 로 변환하여 같으면 정상
if ($mb_lost_certify && $mb_datetime === sql_password($mb['mb_datetime']) && $mb_lost_certify === $mb['mb_lost_certify']) {
sql_query(" update {$g4['member_table']} set mb_password = '{$mb['mb_lost_certify']}' where mb_no = '$mb_no' ");
- alert('변경된 패스워드를 이메일로 보내드렸습니다.\\n\\n회원아이디와 변경된 패스워드로 로그인 하시기 바랍니다.', G4_BBS_URL.'/login.php');
+ alert('패스워드가 변경됐습니다.\\n\\n회원아이디와 변경된 패스워드로 로그인 하시기 바랍니다.', G4_BBS_URL.'/login.php');
}
else {
die("Error");
diff --git a/bbs/poll_update.php b/bbs/poll_update.php
index f05a5fdfb..3e6663e5e 100644
--- a/bbs/poll_update.php
+++ b/bbs/poll_update.php
@@ -11,10 +11,20 @@ if ($member['mb_level'] < $po['po_level'])
if(!$gb_poll)
alert_close('항목을 선택하세요.');
-// 쿠키에 저장된 투표번호가 없다면
-if (get_cookie('ck_po_id') != $po['po_id']) {
+$search_mb_id = false;
+$search_ip = false;
+
+if($is_member) {
+ // 투표했던 회원아이디들 중에서 찾아본다
+ $ids = explode(',', trim($po['mb_ids']));
+ for ($i=0; $i
diff --git a/bbs/register_form_update_mail1.php b/bbs/register_form_update_mail1.php
index ec63c0456..50faeb715 100644
--- a/bbs/register_form_update_mail1.php
+++ b/bbs/register_form_update_mail1.php
@@ -23,12 +23,15 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
=$mb_name?> 님의 회원가입을 진심으로 축하합니다.
회원님의 성원에 보답하고자 더욱 더 열심히 하겠습니다.
+ if ($config['cf_use_email_certify']) { ?>아래의 메일인증 을 클릭하시면 회원가입이 완료됩니다. } ?>
감사합니다.
+
if ($config['cf_use_email_certify']) { ?>
- 아래의 주소를 클릭하시면 회원가입이 완료됩니다.=$certify_href?>
+ 메일인증
+ } else { ?>
+ 사이트바로가기
} ?>
- 사이트에서 게시물 확인하기
diff --git a/bbs/register_form_update_mail3.php b/bbs/register_form_update_mail3.php
index b7cd690f5..3f5991b17 100644
--- a/bbs/register_form_update_mail3.php
+++ b/bbs/register_form_update_mail3.php
@@ -24,12 +24,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
=$mb_name?> 님의 E-mail 주소가 변경되었습니다.
아래의 주소를 클릭하시면 인증이 완료됩니다.
- =$certify_href?>
+ =$certify_href?>
회원님의 성원에 보답하고자 더욱 더 열심히 하겠습니다.
감사합니다.
- =$config['cf_title']?> 로그인
+ =$config['cf_title']?> 로그인
diff --git a/bbs/write.php b/bbs/write.php
index 72f82b978..5159cfb9b 100644
--- a/bbs/write.php
+++ b/bbs/write.php
@@ -338,6 +338,8 @@ $upload_max_filesize = number_format($board['bo_upload_size']) . ' 바이트';
$width = $board['bo_table_width'];
if ($width <= 100)
$width .= '%';
+else
+ $width .= 'px';
$captcha_html = '';
$captcha_js = '';
diff --git a/common.php b/common.php
index 3540a3805..f816f4ade 100644
--- a/common.php
+++ b/common.php
@@ -102,7 +102,7 @@ if (file_exists($dbconfig_file)) {
-오류! 그누보드4S 설치하기
+오류! 그누보드4s 설치하기