վhttp://localhost/ictech/
һ˵:
ɾ"_"ͷļļ
ɾ԰гĺӢ
ɾskinĿ¼³ĬƤļ
filemanager/browser/default/connectors/Ŀ¼³phpļ
filemanager/upload/Ŀ¼³phpļ


˵:
Fckeditor ıļվĿ¼ļ/ictech/
/fcktemplates.xml
/fckstyles.xml
/fckeditor_php5.php
/fckeditor_php4.php
/fckeditor.php
/fckeditor.js
/fckconfig.js
/editor/
fckeditor.php :
BasePathΪĬFckeditorĿ¼,Ҳڵõʱָ.

\fckconfig.js ʶã

FCKConfig.AutoDetectLanguage	= false ; //61 رԶʶ
FCKConfig.DefaultLanguage		= 'zh-cn' ; //62 ѡ zh-cn

ġϴã
\editor\filemanager\browser\default\connectors\php\config.php:

$Config['Enabled'] = true ;// 30 Ƿϴ

$Config['UserFilesPath'] = '/ictech/userfiles/' ; //33 Ĭϴ·ԸĵӦĿ¼½ƵĿ¼




ġϴļΪ 201447202465.jpg 
޸fckeditor/editor/filemanager/connectors/php/commands.php
   1.һӺ [24]
function GetRandID($prefix) {
    //һ:ʼ
      //microtime(); Ǹ
     $seedstr =split(" ",microtime(),5);
     $seed =$seedstr[0]*10000;
   //ڶ:ʹӳʼ
     srand($seed);
   //:ָΧڵ
     $random =rand(1,10000);

     $filename = date("dHis", time()).$random.'.'.$prefix;

     return $filename;
}

2.[204]Ӧú
    ںfunction FileUpload( $resourceType, $currentFolder, $sCommand ) еif ( isset( $Config['SecureImageUploads'] ) )[204]һ
     $sOriginalFileName = $sFileName = GetRandID($sExtension);


    
塢phpļӦ 
http://localhost/ictech/fadd.php   
<?php
include("fckeditor.php");
$sBasePath="/ictech/";//༭Ŀ¼
$oFCKeditor=new FCKeditor('fileinfo'); // һfckeditor
$oFCKeditor->BasePath=$BasePath;
$oFCKeditor->Value=$fileinfo; // ñʼֵ
$oFCKeditor->Create(); // з
?>