源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

配置fckeditor 实现图片的上传

  • 时间:2020-03-07 20:39 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:配置fckeditor 实现图片的上传
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函数
[u]复制代码[/u] 代码如下:
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函数
[u]复制代码[/u] 代码如下:
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']变量就行了。不过图片在编辑器里面不能看见,但是显示成内容的时候没有问题
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部