欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

配置fckeditor 實現(xiàn)圖片的上傳

 更新時間:2009年11月26日 17:56:26   作者:  
配置fckeditor 實現(xiàn)圖片的上傳
1.應(yīng)該修改editor\filemanager\upload\php\editor\filemanager\browser\default\connectors\php\config.php 中的$Config['Enabled'] = true ;

2.應(yīng)該修改editor\filemanager\upload\php\editor\filemanager\upload\php\config.php 中的$Config['Enabled'] = true ;

3.應(yīng)該修改editor\filemanager\upload\php下util.php里面的getrootpath函數(shù)
復(fù)制代碼 代碼如下:


function GetRootPath() { $sRealPath = realpath( '.' ) ; $sRealPath=str_replace('\\','/',$sRealPath); $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; return $sRealPath.'/'; }

還有editor\filemanager\browser\default\connectors\php下io.php里面的getrootpath函數(shù)
復(fù)制代碼 代碼如下:


function GetRootPath() { $sRealPath = realpath( '.' ) ; $sRealPath=str_replace('\\','/',$sRealPath); $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; return $sRealPath.'/'; }

然后修改editor\filemanager\browser\default\connectors\php里面config.php文件的$Config['UserFilesPath']變量以及editor\filemanager\upload\php下config.php里面的$Config['UserFilesPath']變量就行了。不過圖片在編輯器里面不能看見,但是顯示成內(nèi)容的時候沒有問題

相關(guān)文章

最新評論