Function getAttachmentFilename
Get an attachment's encrypted filename. If $new is true, won't check for file existence.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
string |
$filename |
The name of the file |
integer |
$attachment_id |
The ID of the attachment |
string|null |
$dir = null |
Which directory it should be in (null to use current one) |
boolean |
$new = false |
Whether this is a new attachment |
string |
$file_hash = '' |
The file hash |
string
|
The path to the file |