func.php 파일을 file, legacy, converter로 분리.
message 클래스에서 nation이 NULL경우 예외 처리
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user