| @@ 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 | ||
| @@ 732-737 (lines=6) @@ | ||
| 729 | } |
|
| 730 | $direct_download = 'Y'; |
|
| 731 | } |
|
| 732 | else |
|
| 733 | { |
|
| 734 | $path = sprintf("./files/attach/binaries/%s/%s", $module_srl, getNumberingPath($upload_target_srl,3)); |
|
| 735 | $filename = $path.$random->createSecureSalt(32, 'hex'); |
|
| 736 | $direct_download = 'N'; |
|
| 737 | } |
|
| 738 | // Create a directory |
|
| 739 | if(!FileHandler::makeDir($path)) return new Object(-1,'msg_not_permitted_create'); |
|
| 740 | ||