func.php 파일을 file, legacy, converter로 분리.

message 클래스에서 nation이 NULL경우 예외 처리
This commit is contained in:
2018-01-28 04:56:20 +09:00
parent 0c0c4fa547
commit 9ec48f5f09
6 changed files with 884 additions and 858 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
function delInDir($dir) {
$handle = opendir($dir);
if($handle !== false){
while(false !== ($FolderOrFile = readdir($handle))) {
if ($FolderOrFile == "." || $FolderOrFile == "..") {
continue;
}
$filepath = sprintf('%s/%s', $dir, $FolderOrFile);
if (is_dir($filepath)) {
delInDir($filepath);
} // recursive
else {
@unlink($filepath);
}
}
}
closedir($handle);
// if(rmdir($dir)) {
// $success = true;
// }
return true;
}