Function secureDirectory
A generic function to create a pair of index.php and .htaccess files in a directory
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Security.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Security.php
string|array |
$paths |
The (absolute) directory path |
boolean |
$attachments = false |
Whether this is an attachment directory |
boolean|array
|
True on success an array of errors if anything fails |