1.應該修改editor/filemanager/upload/php/editor/filemanager/browser/default/connectors/php/config.php 中的$Config['Enabled'] = true ;
2.應該修改editor/filemanager/upload/php/editor/filemanager/upload/php/config.php 中的$Config['Enabled'] = true ;
3.應該修改editor/filemanager/upload/php下util.php里面的getrootpath函數
復制代碼 代碼如下:
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函數
復制代碼 代碼如下:
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']變量就行了。不過圖片在編輯器里面不能看見,但是顯示成內容的時候沒有問題