From 6c71fcdc3b525ad2d67ef7baf442ed76b5139ada Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 9 Jan 2014 09:41:52 +0900 Subject: [PATCH] =?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