fckeditor 防止上传非法文件 增加登录判断

 更新时间:2012年06月27日 10:57:53   作者:  
fckeditor 防止上传非法文件 增加登录判断,需要的朋友可以参考下
(福利推荐:【腾讯云】服务器最新限时优惠活动,云服务器1核2G仅99元/年、2核4G仅768元/3年,立即抢购>>>:9i0i.cn/qcloud

(福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun

fckeditor\editor\filemanager\connectors\asp 目录下 两个文件connector.asp upload.asp 里判断是否登录后台

connector.asp
If ( ConfigIsEnabled = False ) Then
SendError 1, "This connector is disabled. Please check the ""editor/filemanager/connectors/asp/config.asp"" file"
End If

在这段代码之前增加身份判断
if 没登录 then
SendError 1, "no login"
end if
upload.asp
if
fckeditor 目录改名 尽量改成fckeditor没有关系的名字

相关文章

最新评论


http://www.vxiaotou.com