윈도우 환경에서 퍼미션체크 무력화

This commit is contained in:
chicpro
2013-03-13 09:53:45 +09:00
parent d22a70a926
commit 8be0688d2d

View File

@ -67,6 +67,7 @@ if (!is_dir($data_path))
<? <?
// data 디렉토리에 파일 생성 가능한지 검사. // data 디렉토리에 파일 생성 가능한지 검사.
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data_path))) if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data_path)))
{ {
?> ?>
@ -76,4 +77,5 @@ if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data
<? <?
exit; exit;
} }
}
?> ?>