|
@@ 3282-3286 (lines=5) @@
|
| 3279 |
|
} |
| 3280 |
|
|
| 3281 |
|
// We are already checking so many files...just few more doesn't make any difference! :P |
| 3282 |
|
if (!empty($modSettings['currentAttachmentUploadDir'])) |
| 3283 |
|
$path = $modSettings['attachmentUploadDir'][$modSettings['currentAttachmentUploadDir']]; |
| 3284 |
|
|
| 3285 |
|
else |
| 3286 |
|
$path = $modSettings['attachmentUploadDir']; |
| 3287 |
|
|
| 3288 |
|
secureDirectory($path, true); |
| 3289 |
|
secureDirectory($cachedir); |
|
@@ 3704-3708 (lines=5) @@
|
| 3701 |
|
$file_hash = sha1(md5($filename . time()) . mt_rand()); |
| 3702 |
|
|
| 3703 |
|
// Are we using multiple directories? |
| 3704 |
|
if (!empty($modSettings['currentAttachmentUploadDir'])) |
| 3705 |
|
$path = $modSettings['attachmentUploadDir'][$dir]; |
| 3706 |
|
|
| 3707 |
|
else |
| 3708 |
|
$path = $modSettings['attachmentUploadDir']; |
| 3709 |
|
|
| 3710 |
|
return $path . '/' . $attachment_id . '_' . $file_hash .'.dat'; |
| 3711 |
|
} |