diff --git a/adm/board_form_update.php b/adm/board_form_update.php index dda11994b..39ce91d57 100644 --- a/adm/board_form_update.php +++ b/adm/board_form_update.php @@ -84,6 +84,7 @@ $sql_common = " gr_id = '{$_POST['gr_id']}', bo_use_ip_view = '{$_POST['bo_use_ip_view']}', bo_use_list_view = '{$_POST['bo_use_list_view']}', bo_use_list_content = '{$_POST['bo_use_list_content']}', + bo_use_email = '{$_POST['bo_use_email']}', bo_table_width = '{$_POST['bo_table_width']}', bo_subject_len = '{$_POST['bo_subject_len']}', bo_page_rows = '{$_POST['bo_page_rows']}', @@ -128,9 +129,6 @@ $sql_common = " gr_id = '{$_POST['gr_id']}', bo_9 = '{$_POST['bo_9']}', bo_10 = '{$_POST['bo_10']}' "; -if (isset($_POST['bo_use_email'])) - $sql_common .= ", bo_use_email = '{$_POST['bo_use_email']}'"; - if ($w == '') { $row = sql_fetch(" select count(*) as cnt from {$g4['board_table']} where bo_table = '{$bo_table}' "); diff --git a/bbs/alert_close.php b/bbs/alert_close.php new file mode 100644 index 000000000..6038f2082 --- /dev/null +++ b/bbs/alert_close.php @@ -0,0 +1,47 @@ +", $msg); + +if($error) { + $header2 = "다음 항목에 오류가 있습니다."; + $msg3 = "새창을 닫으시고 이전 작업을 다시 시도해 주세요."; +} else { + $header2 = "다음 내용을 확인해 주세요."; + $msg3 = "새창을 닫으신 후 서비스를 이용해 주세요."; +} +?> + + + + + + \ No newline at end of file diff --git a/bbs/memo_form_update.php b/bbs/memo_form_update.php index ce3031a18..0de46d095 100644 --- a/bbs/memo_form_update.php +++ b/bbs/memo_form_update.php @@ -73,5 +73,5 @@ for ($i=0; $i \ No newline at end of file diff --git a/bbs/poll_update.php b/bbs/poll_update.php index 954f12f3b..c95303dd3 100644 --- a/bbs/poll_update.php +++ b/bbs/poll_update.php @@ -2,12 +2,15 @@ include_once('./_common.php'); $po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$_POST['po_id']}' "); -if (!$po['po_id']) +if (!$po['po_id']) alert('po_id 값이 제대로 넘어오지 않았습니다.'); -if ($member['mb_level'] < $po['po_level']) +if ($member['mb_level'] < $po['po_level']) alert_close('권한 '.$po['po_level'].' 이상 회원만 투표에 참여하실 수 있습니다.'); +if(!$gb_poll) + alert_close('항목을 선택하세요.'); + // 쿠키에 저장된 투표번호가 없다면 if (get_cookie('ck_po_id') != $po['po_id']) { // 투표했던 ip들 중에서 찾아본다 diff --git a/bbs/write.php b/bbs/write.php index fd3921fc2..c897cd16d 100644 --- a/bbs/write.php +++ b/bbs/write.php @@ -45,7 +45,7 @@ if ($w == '') { if ($is_member) { $tmp_point = ($member['mb_point'] > 0) ? $member['mb_point'] : 0; if ($tmp_point + $board['bo_write_point'] < 0 && !$is_admin) { - alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 글쓰기('.number_format($board['bo_write_point']).')가 불가합니다.'.PHP_EOL.PHP_EOL.'포인트를 적립하신 후 다시 글쓰기 해 주십시오.'); + alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 글쓰기('.number_format($board['bo_write_point']).')가 불가합니다.\\n\\n포인트를 적립하신 후 다시 글쓰기 해 주십시오.'); } } @@ -59,7 +59,7 @@ if ($w == '') { if ($member['mb_id']) { alert('글을 수정할 권한이 없습니다.'); } else { - alert('글을 수정할 권한이 없습니다.'.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.', './login.php?'.$qstr.'&url='.urlencode($_SERVER['PHP_SELF'].'?bo_table='.$bo_table)); + alert('글을 수정할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?'.$qstr.'&url='.urlencode($_SERVER['PHP_SELF'].'?bo_table='.$bo_table)); } } @@ -75,7 +75,7 @@ if ($w == '') { and wr_is_comment = 0 "; $row = sql_fetch($sql); if ($row['cnt'] && !$is_admin) - alert('이 글과 관련된 답변글이 존재하므로 수정 할 수 없습니다.'.PHP_EOL.PHP_EOL.'답변글이 있는 원글은 수정할 수 없습니다.'); + alert('이 글과 관련된 답변글이 존재하므로 수정 할 수 없습니다.\\n\\n답변글이 있는 원글은 수정할 수 없습니다.'); // 코멘트 달린 원글의 수정 여부 $sql = " select count(*) as cnt from {$write_table} @@ -84,7 +84,7 @@ if ($w == '') { and wr_is_comment = 1 "; $row = sql_fetch($sql); if ($row['cnt'] >= $board['bo_count_modify'] && !$is_admin) - alert('이 글과 관련된 코멘트가 존재하므로 수정 할 수 없습니다.'.PHP_EOL.PHP_EOL.'코멘트가 '.$board['bo_count_modify'].'건 이상 달린 원글은 수정할 수 없습니다.'); + alert('이 글과 관련된 코멘트가 존재하므로 수정 할 수 없습니다.\\n\\n코멘트가 '.$board['bo_count_modify'].'건 이상 달린 원글은 수정할 수 없습니다.'); $title_msg = '글수정'; } else if ($w == 'r') { @@ -92,12 +92,12 @@ if ($w == '') { if ($member['mb_id']) alert('글을 답변할 권한이 없습니다.'); else - alert('글을 답변할 권한이 없습니다.'.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.', './login.php?$qstr&url='.urlencode($_SERVER['PHP_SELF'].'?bo_table='.$bo_table)); + alert('글을 답변할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?$qstr&url='.urlencode($_SERVER['PHP_SELF'].'?bo_table='.$bo_table)); } $tmp_point = isset($member['mb_point']) ? $member['mb_point'] : 0; if ($tmp_point + $board['bo_write_point'] < 0 && !$is_admin) - alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 글답변('.number_format($board['bo_comment_point']).')가 불가합니다.'.PHP_EOL.PHP_EOL.'포인트를 적립하신 후 다시 글답변 해 주십시오.'); + alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 글답변('.number_format($board['bo_comment_point']).')가 불가합니다.\\n\\n포인트를 적립하신 후 다시 글답변 해 주십시오.'); //if (preg_match("/[^0-9]{0,1}{$wr_id}[\r]{0,1}/",$board['bo_notice'])) if (in_array((int)$wr_id, $notice_array)) @@ -128,7 +128,7 @@ if ($w == '') { // 최대 답변은 테이블에 잡아놓은 wr_reply 사이즈만큼만 가능합니다. if (strlen($reply_array['wr_reply']) == 10) - alert('더 이상 답변하실 수 없습니다.'.PHP_EOL.PHP_EOL.'답변은 10단계 까지만 가능합니다.'); + alert('더 이상 답변하실 수 없습니다.\\n\\n답변은 10단계 까지만 가능합니다.'); $reply_len = strlen($reply_array['wr_reply']) + 1; if ($board['bo_reply_order']) { @@ -148,7 +148,7 @@ if ($w == '') { if (!$row['reply']) $reply_char = $begin_reply_char; else if ($row['reply'] == $end_reply_char) // A~Z은 26 입니다. - alert('더 이상 답변하실 수 없습니다.'.PHP_EOL.PHP_EOL.'답변은 26개 까지만 가능합니다.'); + alert('더 이상 답변하실 수 없습니다.\\n\\n답변은 26개 까지만 가능합니다.'); else $reply_char = chr(ord($row['reply']) + $reply_number); @@ -170,7 +170,7 @@ if (!empty($group['gr_use_access'])) { $sql = " select gr_id from {$g4['group_member_table']} where gr_id = '{$board['gr_id']}' and mb_id = '{$member['mb_id']}' "; $row = sql_fetch($sql); if (!$row['gr_id']) - alert('접근 권한이 없으므로 글쓰기가 불가합니다.'.PHP_EOL.PHP_EOL.'궁금하신 사항은 관리자에게 문의 바랍니다.'); + alert('접근 권한이 없으므로 글쓰기가 불가합니다.\\n\\n궁금하신 사항은 관리자에게 문의 바랍니다.'); } } @@ -324,11 +324,11 @@ if ($w == '') { $content = $board['bo_insert_content']; } else if ($w == 'r') { if (!strstr($write['wr_option'], 'html')) { - $content = "\\n\\n\\n > " - ."\\n > " - ."\\n > ".preg_replace("/\n/", "\n> ", get_text($write['wr_content'], 0)) - ."\\n > " - ."\\n > "; + $content = "\n\n\n > " + ."\n > " + ."\n > ".preg_replace("/\n/", "\n> ", get_text($write['wr_content'], 0)) + ."\n > " + ."\n > "; } } else { @@ -343,7 +343,7 @@ if ($width <= 100) $captcha_html = ""; if ($is_guest) { - $captcha_html = captcha_html(); + $captcha_html = captcha_html(); } include_once($g4['path'].'/head.sub.php'); diff --git a/css/default.css b/css/default.css index 8ff9cb561..e979e8bfc 100644 --- a/css/default.css +++ b/css/default.css @@ -143,7 +143,7 @@ a {color:#000;text-decoration:none} /* 설문조사 결과 (새창) */ #poll_result section {padding:15px;width:90%} #poll_result h2 {margin:0;padding:20px 0} -#poll_result_list {margin:0 auto;border:1px solid #ddd;border-bottom:0} +#poll_result_list {margin:0 auto;border:1px solid #ddd} #poll_result_list h2 {text-align:center} #poll_result_list dl, #poll_result_list dt, @@ -157,7 +157,7 @@ a {color:#000;text-decoration:none} #poll_result_list p span {position:absolute;top:5px;right:5%;width:80px;text-align:right} .poll_result_graph {position:relative;margin-right:5%;height:5px;background:#ddd} .poll_result_graph span {position:absolute;top:0;left:0;height:100%;background:#ff4679} -#poll_result_cmt {margin:0 auto 20px;border:1px solid #ddd;background:#f7f7f7} +#poll_result_cmt {margin:0 auto 20px;border:1px solid #ddd;border-top:0;background:#f7f7f7} #poll_result_cmt h2 {text-align:center} #poll_result_cmt article {margin:0 18px 15px;border-bottom:1px solid #e7e7e7} #poll_result_cmt h1 {display:inline-block;margin:0 10px 0 0;padding:0} @@ -210,7 +210,7 @@ a {color:#000;text-decoration:none} /* ##################################################################### 스킨 및 컨텐츠 */ /* 공통 */ -.cnt_cmt {display:inline-block;margin-left:5px;color:#ff4679} +.cnt_cmt {color:#ff4679} .readonly {background:#ff4679} .highlight {font-weight:bold;color:#ff4679} @@ -321,7 +321,7 @@ a {color:#000;text-decoration:none} #bo_list strong {color:#ff4679} #bo_list img {vertical-align:top} .bo_notice {background:#f5f5f5} -.bo_cate_link {display:inline-block;margin:0 10px 0 0;font-weight:bold;text-decoration:none} +.bo_cate_link {display:inline-block;margin:0 5px 0 0;padding:0 8px 0 0;border-right:1px solid #ddd;font-weight:bold;text-decoration:none} .bo_current {color:#ff4679} .td_subject img {margin-left:5px} @@ -345,7 +345,7 @@ a {color:#000;text-decoration:none} #bo_v_atc {padding:0 10px;zoom:1} #bo_v_atc:after {display:block;visibility:hidden;clear:both;content:""} #bo_v_atc h1 {margin:0;padding:0;height:0;overflow:hidden} -#bo_v_atc p {padding:0 0 10px;min-height:300px;height:auto !important;height:300px} +#bo_v_atc p {padding:0 0 10px;min-height:200px;height:auto !important;height:200px} #bo_v_file h2 {margin:0;padding:0;height:0;overflow:hidden} #bo_v_file ul {margin:0;padding:0;list-style:none} #bo_v_file li {border-bottom:1px solid #ddd;background:#f7f7f7} @@ -371,14 +371,14 @@ a {color:#000;text-decoration:none} .bo_v_com li {float:left;margin-left:5px} /* 게시판 댓글 */ -#bo_vc {padding:10px;border:1px solid #eee;background:#f9f9f9} +#bo_vc {padding:10px 20px;border:1px solid #eee;background:#f9f9f9} #bo_vc h2 {margin:0;padding:0;height:0;overflow:hidden} -#bo_vc article {margin:0 10px;padding:0 0 20px;border-bottom:1px solid #ddd} +#bo_vc article {padding:0 0 10px;border-bottom:1px solid #ddd} #bo_vc header {position:relative;zoom:1} #bo_vc header:after {display:block;visibility:hidden;clear:both;content:""} -#bo_vc header img {position:absolute;top:0;left:-30px} -#bo_vc h1 {float:left;margin:15px 0 10px} -.bo_vc_info {float:left;margin:15px 0 10px 15px;zoom:1} +#bo_vc header img {position:absolute;top:15px;left:-20px} +#bo_vc h1 {float:left;margin:15px 0 5px} +.bo_vc_info {float:left;margin:15px 0 5px 15px;zoom:1} .bo_vc_info:after {display:block;visibility:hidden;clear:both;content:""} .bo_vc_info dt {float:left} .bo_vc_info dd {float:left;margin:0 15px 0 10px} @@ -393,7 +393,7 @@ a {color:#000;text-decoration:none} .bo_vc_act {float:right;margin:0;list-style:none;zoom:1} .bo_vc_act:after {display:block;visibility:hidden;clear:both;content:""} .bo_vc_act li {float:left;margin-left:5px} -#bo_vc_w {position:relative;margin-top:10px;padding:10px} +#bo_vc_w {position:relative;padding-top:20px} #bo_vc_w #char_cnt {position:absolute;top:5px;right:10px} #bo_vc_warea {clear:both;position:relative;margin:0 90px 10px 0} #bo_vc_warea textarea {padding:3px;width:100%;height:50px;border:1px solid #ddd;background:#fff;vertical-align:middle} diff --git a/img/icon/icon_re.gif b/img/icon/icon_re.gif index 1a04ddba4..c0e22f8f4 100644 Binary files a/img/icon/icon_re.gif and b/img/icon/icon_re.gif differ diff --git a/lib/common.lib.php b/lib/common.lib.php index 014003f40..625813969 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -142,13 +142,21 @@ function alert($msg='', $url='', $error=true) // 경고메세지 출력후 창을 닫음 -function alert_close($msg) +function alert_close($msg, $error=true) { global $g4; + /* echo ""; echo ""; exit; + */ + $header = ''; + if (isset($g4['title'])) { + $header = $g4['title']; + } + include_once("{$g4['bbs_path']}/alert_close.php"); + exit; } // confirm 창 @@ -362,7 +370,7 @@ function get_list($write_row, $board, $skin_path, $subject_len=40) if (strlen($reply) > 0) { for ($k=0; $k - "> + - > + 댓글 @@ -112,9 +112,9 @@ for ($i=0; $i'; } if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new']; + if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot']; if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file']; if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link']; - if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot']; if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret']; ?> diff --git a/skin/board/neo/view.skin.php b/skin/board/neo/view.skin.php index d1c9b9b3a..85c9cc877 100644 --- a/skin/board/neo/view.skin.php +++ b/skin/board/neo/view.skin.php @@ -121,7 +121,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 diff --git a/skin/board/neo/view_comment.skin.php b/skin/board/neo/view_comment.skin.php index 9200b05ef..5f7f6d70d 100644 --- a/skin/board/neo/view_comment.skin.php +++ b/skin/board/neo/view_comment.skin.php @@ -14,7 +14,8 @@ var char_max = parseInt(); // 최대 ); // 최대 //$str = preg_replace("/\[\\]/i", "", $str); $str = preg_replace("/\[\]*\>[^\s]*\<\/a\>\]/i", "", $str); ?> -
style="margin-left:px"> +
style="margin-left:px">

님의 댓글

- 댓글의 댓글 + 댓글의 댓글
아이피
@@ -139,7 +140,7 @@ var char_max = parseInt(); // 최대 var subject = ""; var content = ""; $.ajax({ - url: bbs_path+"/filter.ajax.php", + url: g4_bbs_path+"/filter.ajax.php", type: "POST", data: { "subject": "", diff --git a/skin/latest/neo/img/bg_latest.gif b/skin/latest/neo/img/bg_latest.gif deleted file mode 100644 index abaf9a6c5..000000000 Binary files a/skin/latest/neo/img/bg_latest.gif and /dev/null differ diff --git a/skin/latest/neo/img/board_bg_line.gif b/skin/latest/neo/img/board_bg_line.gif deleted file mode 100644 index d0e5021fb..000000000 Binary files a/skin/latest/neo/img/board_bg_line.gif and /dev/null differ diff --git a/skin/latest/neo/img/board_icon.gif b/skin/latest/neo/img/board_icon.gif deleted file mode 100644 index 29c3df70b..000000000 Binary files a/skin/latest/neo/img/board_icon.gif and /dev/null differ diff --git a/skin/latest/neo/img/board_more.gif b/skin/latest/neo/img/board_more.gif deleted file mode 100644 index 194e5f8ff..000000000 Binary files a/skin/latest/neo/img/board_more.gif and /dev/null differ diff --git a/skin/latest/neo/img/board_title_bg.gif b/skin/latest/neo/img/board_title_bg.gif deleted file mode 100644 index ce65ea408..000000000 Binary files a/skin/latest/neo/img/board_title_bg.gif and /dev/null differ diff --git a/skin/latest/neo/img/board_title_left.gif b/skin/latest/neo/img/board_title_left.gif deleted file mode 100644 index 474ba7bb0..000000000 Binary files a/skin/latest/neo/img/board_title_left.gif and /dev/null differ diff --git a/skin/latest/neo/img/board_title_right.gif b/skin/latest/neo/img/board_title_right.gif deleted file mode 100644 index 7920f0004..000000000 Binary files a/skin/latest/neo/img/board_title_right.gif and /dev/null differ diff --git a/skin/latest/neo/img/icon_file.gif b/skin/latest/neo/img/icon_file.gif deleted file mode 100644 index b9aa391da..000000000 Binary files a/skin/latest/neo/img/icon_file.gif and /dev/null differ diff --git a/skin/latest/neo/img/icon_hit.gif b/skin/latest/neo/img/icon_hit.gif deleted file mode 100644 index 29b20be16..000000000 Binary files a/skin/latest/neo/img/icon_hit.gif and /dev/null differ diff --git a/skin/latest/neo/img/icon_hot.gif b/skin/latest/neo/img/icon_hot.gif index 2069c932e..a2e23e0f2 100644 Binary files a/skin/latest/neo/img/icon_hot.gif and b/skin/latest/neo/img/icon_hot.gif differ diff --git a/skin/latest/neo/img/icon_link.gif b/skin/latest/neo/img/icon_link.gif index f5d6d3ca3..555728b52 100644 Binary files a/skin/latest/neo/img/icon_link.gif and b/skin/latest/neo/img/icon_link.gif differ diff --git a/skin/latest/neo/img/icon_new.gif b/skin/latest/neo/img/icon_new.gif index 38edbdb8e..151d3dd82 100644 Binary files a/skin/latest/neo/img/icon_new.gif and b/skin/latest/neo/img/icon_new.gif differ diff --git a/skin/latest/neo/img/icon_reply.gif b/skin/latest/neo/img/icon_reply.gif index bfecc0c96..d493ea902 100644 Binary files a/skin/latest/neo/img/icon_reply.gif and b/skin/latest/neo/img/icon_reply.gif differ diff --git a/skin/latest/neo/img/icon_secret.gif b/skin/latest/neo/img/icon_secret.gif deleted file mode 100644 index d0d43a36d..000000000 Binary files a/skin/latest/neo/img/icon_secret.gif and /dev/null differ diff --git a/skin/latest/neo/img/latest_icon.gif b/skin/latest/neo/img/latest_icon.gif deleted file mode 100644 index 3cb27bdac..000000000 Binary files a/skin/latest/neo/img/latest_icon.gif and /dev/null differ diff --git a/skin/latest/neo/img/latest_t01.gif b/skin/latest/neo/img/latest_t01.gif deleted file mode 100644 index 638b80682..000000000 Binary files a/skin/latest/neo/img/latest_t01.gif and /dev/null differ diff --git a/skin/latest/neo/img/latest_t02.gif b/skin/latest/neo/img/latest_t02.gif deleted file mode 100644 index de98bc92d..000000000 Binary files a/skin/latest/neo/img/latest_t02.gif and /dev/null differ diff --git a/skin/latest/neo/img/more.gif b/skin/latest/neo/img/more.gif deleted file mode 100644 index d81816256..000000000 Binary files a/skin/latest/neo/img/more.gif and /dev/null differ diff --git a/skin/latest/neo/latest.skin.php b/skin/latest/neo/latest.skin.php index b096d56dc..21d00745b 100644 --- a/skin/latest/neo/latest.skin.php +++ b/skin/latest/neo/latest.skin.php @@ -23,9 +23,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; } if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new']; + if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot']; if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file']; if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link']; - if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot']; if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret']; ?>