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') { diff --git a/lib/common.lib.php b/lib/common.lib.php index 1e4193448..a0f877cd7 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