1. Implementation of ckeditor/"target=" _blank ">fckeditor in the form of a date catalog upload files, such as today is May 5, 2015, so today's uploaded files are placed in this directory, the uploaded tomorrow will be automatically created and placed in a similar 2015-05-06 such a catalogue goes inside.
(1) Locate the config.php file under the Editor\editor\filemanager\connectors\php\ folder
(2) Find the following configuration variables
$Config [' userfilespath '] = '/uploadfiles/';
Modify its value to:
$Config [' userfilespath '] = '/uploadfiles/'. Date (' y-m-d '). " /';
The uploaded files are stored according to the date.
2. Rename FCKeditor uploaded file method
(1) Locate the editor\editor\filemanager\connectors\php\io.php file:
(2) Find the following content:
.....
Function Sanitizefilename ($sNewFileName) {
global $Config;
$sNewFileName = stripslashes ($sNew FileName);
if ($Config [' forcesingleextension '])
$sNewFileName = preg_replace ('/\\. [^.] *$)/', ' _ ', $sNewFileName);
$sNewFileName = preg_replace ('/\\\\|\\/|\\| | \\:|\\?| \\*|"| <|>/', ' _ ', $sNewFileName);
return $sNewFileName;
}
...
Modify to:
Function Sanitizefilename ($sNewFileName) {
global $Config;
$sNewFileName = stripslashes ($ Snewfilename);
if ($Config [' forcesingleextension '])
$sNewFileName = preg_replace ('/\\. [^.] *$)/', ' _ ', $sNewFileName);
//Get extension
$sExtension = substr ($sNewFileName, (Strrpos ($sNewFileName, '. ') + 1);
$sExte Nsion = Strtolower ($sExtension);
$sNewFileName = date ("Ymdhis"). $sExtension;
return $sNewFileName;
}
files that are now uploaded are automatically renamed.