Function load_file
Receives a string and tries to figure it out if it contains info to load a file. Checks for a | (pipe) symbol and tries to load a file with the info given. The string should be format as follows File.php|. You can use the following wildcards: $boarddir, $sourcedir and if available at the moment of execution, $themedir.
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 |
$string |
The string containing a valid format. |
string|boolean
|
The given string with the pipe and file info removed. Boolean false if the file couldn't be loaded. |