2014-11-14, 02:47 AM
Hello,
I'm looking for a way to create a setting in my plugin which can rename a file. In summary:
$oldfile = current url of the file
$newfile = $mybb->settings['key']
I apply the setting, but when I apply the setting I want the $newfile become the $oldfile, and the $newfile become the $mybb->settings['key']. How can I do it?
I'm looking for a way to create a setting in my plugin which can rename a file. In summary:
rename($oldfile, $newfile);
$oldfile = current url of the file
$newfile = $mybb->settings['key']
I apply the setting, but when I apply the setting I want the $newfile become the $oldfile, and the $newfile become the $mybb->settings['key']. How can I do it?