I'm creating an upload so that people can upload a tpl file to a dynamic template folder. All of the folders inside of the template folder should have their own index.tpl. I've already created a way to select the template to use or edit. Now I wish to create the ability for them to also upload any tpl file to the directory which they selected as the folder they wish to use for their site template. Sio simplified:
1) The user selects a theme for their site, they are really selecting a template or folder from within the template directory.
2) The user uploads any tpl file and it will be name index.tpl and go into the folder they have already selected to use on their store in the previous step.
Whats wrong with the code?
<?php
if (isset($_FILES['ufile2']['tmp_name']))
{
$UPLOAD_DIR = '../../template/".config['skinDir']."/';
$file ='index.tpl';
move_uploaded_file($_FILES['ufile2']['tmp_name'], $UPLOAD_DIR.$file);
}
?>
But i get a Parse error: syntax error, unexpected T_STRING