| @@ 705-710 (lines=6) @@ | ||
| 702 | } |
|
| 703 | $direct_download = 'Y'; |
|
| 704 | } |
|
| 705 | else |
|
| 706 | { |
|
| 707 | $path = sprintf("./files/attach/binaries/%s/%s", $module_srl, getNumberingPath($upload_target_srl,3)); |
|
| 708 | $filename = $path.$random->createSecureSalt(32, 'hex'); |
|
| 709 | $direct_download = 'N'; |
|
| 710 | } |
|
| 711 | // Create a directory |
|
| 712 | if(!FileHandler::makeDir($path)) return new Object(-1,'msg_not_permitted_create'); |
|
| 713 | ||
| @@ 1081-1086 (lines=6) @@ | ||
| 1078 | ||
| 1079 | $file_obj->direct_download = 'Y'; |
|
| 1080 | } |
|
| 1081 | else |
|
| 1082 | { |
|
| 1083 | $path = sprintf("./files/attach/binaries/%s/%s", $module_srl, getNumberingPath($upload_target_srl,3)); |
|
| 1084 | $filename = $path.$random->createSecureSalt(32, 'hex'); |
|
| 1085 | $file_obj->direct_download = 'N'; |
|
| 1086 | } |
|
| 1087 | // Create a directory |
|
| 1088 | if(!FileHandler::makeDir($path)) continue; |
|
| 1089 | ||