From 6c71fcdc3b525ad2d67ef7baf442ed76b5139ada Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 9 Jan 2014 09:41:52 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=8B=A4=ED=96=89?= =?UTF-8?q?=EA=B6=8C=ED=95=9C=20=EC=B2=B4=ED=81=AC=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 64 +++++++++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 1e4193448..cc4f01680 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2447,33 +2447,45 @@ function module_exec_check($exe, $type) // 바이너리 파일인지 if($is_linux) { $search = false; - exec('ls', $out); - if(empty($out)) { - $error = 'exec 함수의 실행권한이 없습니다. 서버관리자에게 문의해 주십시오.'; - } else { - switch($type) { - case 'ct_cli': - exec($exe.' -h 2>&1', $out); - for($i=0; $i&1', $out); - for($i=0; $i&1', $out); + + if(empty($out)) { + $executable = false; + break; + } + + for($i=0; $i&1', $out); + + if(empty($out)) { + $executable = false; + break; + } + + for($i=0; $i Date: Thu, 9 Jan 2014 09:55:53 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=8B=A4=ED=96=89?= =?UTF-8?q?=EA=B6=8C=ED=95=9C=20=EC=B2=B4=ED=81=AC=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=9E=AC=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index cc4f01680..a0f877cd7 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2459,7 +2459,7 @@ function module_exec_check($exe, $type) } for($i=0; $i Date: Thu, 9 Jan 2014 10:41:19 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=EC=9B=90=EA=B8=80=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=EB=B6=88=EA=B0=80=20=EB=8C=93=EA=B8=80=EC=88=98=EB=A5=BC=200?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=84=A4=EC=A0=95=ED=95=A0=20=EC=88=98=20?= =?UTF-8?q?=EC=9E=88=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_form.php | 5 +++-- bbs/write.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/adm/board_form.php b/adm/board_form.php index 087832b93..6d49f2a54 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -421,6 +421,7 @@ $frm_submit .= ''; + 댓글 개 이상 달리면 수정불가 @@ -1290,8 +1291,8 @@ function fboardform_submit(f) - if (parseInt(f.bo_count_modify.value) < 1) { - alert("원글 수정 불가 댓글수는 1 이상 입력하셔야 합니다."); + if (parseInt(f.bo_count_modify.value) < 0) { + alert("원글 수정 불가 댓글수는 0 이상 입력하셔야 합니다."); f.bo_count_modify.focus(); return false; } diff --git a/bbs/write.php b/bbs/write.php index 74541eefe..4c5c67efd 100644 --- a/bbs/write.php +++ b/bbs/write.php @@ -89,8 +89,8 @@ if ($w == '') { and mb_id <> '{$member['mb_id']}' and wr_is_comment = 1 "; $row = sql_fetch($sql); - if ($row['cnt'] >= $board['bo_count_modify'] && !$is_admin) - alert('이 글과 관련된 코멘트가 존재하므로 수정 할 수 없습니다.\\n\\n코멘트가 '.$board['bo_count_modify'].'건 이상 달린 원글은 수정할 수 없습니다.'); + if ($board['bo_count_modify'] && $row['cnt'] >= $board['bo_count_modify'] && !$is_admin) + alert('이 글과 관련된 댓글이 존재하므로 수정 할 수 없습니다.\\n\\n댓글이 '.$board['bo_count_modify'].'건 이상 달린 원글은 수정할 수 없습니다.'); $title_msg = '글수정'; } else if ($w == 'r') {