convert_template
Description
Converts an old YaBB SE template (template.php or template.html) to an SMF template (index.php) and also upgrades style.css as needed.
Syntax
void convert_template (string $output_dir[, string $old_template])
Parameter $output_dir
Expected type: String
Description: The to the directory where the new index.template.php and style.css files should go
Parameter $old_template
Expected type: String
Description: The path to the old template file, including filename. If not specified, SMF will look for template.php or template.html in the main board directory
Notes
- Used by the upgrade script if it detects an old template file in the board directory and the user wishes to convert that file.
- Can also be called directly although there's no interface for this.
- Will not work if fopen, fwrite or fclose are disabled