게시판 선택삭제시 퍼미션 설정 오류 수정
This commit is contained in:
@ -159,7 +159,6 @@ function icon($act, $link='', $target='_parent')
|
|||||||
function rm_rf($file)
|
function rm_rf($file)
|
||||||
{
|
{
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
@chmod($file, G5_FILE_PERMISSION);
|
|
||||||
if (is_dir($file)) {
|
if (is_dir($file)) {
|
||||||
$handle = opendir($file);
|
$handle = opendir($file);
|
||||||
while($filename = readdir($handle)) {
|
while($filename = readdir($handle)) {
|
||||||
@ -167,9 +166,13 @@ function rm_rf($file)
|
|||||||
rm_rf($file.'/'.$filename);
|
rm_rf($file.'/'.$filename);
|
||||||
}
|
}
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
rmdir($file);
|
|
||||||
} else
|
@chmod($file, G5_DIR_PERMISSION);
|
||||||
unlink($file);
|
@rmdir($file);
|
||||||
|
} else {
|
||||||
|
@chmod($file, G5_FILE_PERMISSION);
|
||||||
|
@unlink($file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user