|
@@ 3299-3306 (lines=8) @@
|
| 3296 |
|
} |
| 3297 |
|
|
| 3298 |
|
// We are already checking so many files...just few more doesn't make any difference! :P |
| 3299 |
|
if (!empty($modSettings['currentAttachmentUploadDir'])) |
| 3300 |
|
$path = $modSettings['attachmentUploadDir'][$modSettings['currentAttachmentUploadDir']]; |
| 3301 |
|
|
| 3302 |
|
else |
| 3303 |
|
{ |
| 3304 |
|
$path = $modSettings['attachmentUploadDir']; |
| 3305 |
|
$id_folder_thumb = 1; |
| 3306 |
|
} |
| 3307 |
|
secureDirectory($path, true); |
| 3308 |
|
secureDirectory($cachedir); |
| 3309 |
|
|
|
@@ 3730-3734 (lines=5) @@
|
| 3727 |
|
$file_hash = sha1(md5($filename . time()) . mt_rand()); |
| 3728 |
|
|
| 3729 |
|
// Are we using multiple directories? |
| 3730 |
|
if (!empty($modSettings['currentAttachmentUploadDir'])) |
| 3731 |
|
$path = $modSettings['attachmentUploadDir'][$dir]; |
| 3732 |
|
|
| 3733 |
|
else |
| 3734 |
|
$path = $modSettings['attachmentUploadDir']; |
| 3735 |
|
|
| 3736 |
|
return $path . '/' . $attachment_id . '_' . $file_hash .'.dat'; |
| 3737 |
|
} |