Rumah  >  Artikel  >  Tutorial CMS  >  织梦dedecms 提示 body has not allow words怎么办

织梦dedecms 提示 body has not allow words怎么办

藏色散人
藏色散人asal
2019-12-21 10:41:242248semak imbas

织梦dedecms 提示 body has not allow words怎么办

织梦dedecms 提示 body has not allow words怎么办?

织梦dedecms 提示 body has not allow words 问题解决

  

此句“body has not allow words!”英文的意思,大概是“文章具有不充许的字符!”我这才恍然大悟,一定是我在后台“系统”—“系统基本参数”—设置版块中的“互动设置”中敏感字词开设得太多,让会员用户中招了。

推荐学习:织梦cms

当我,删去那些可有可无的,结果会员发文章正常。可见问题是出在“系统基本参数”上。而当会员遇到“body has not allow words!”提示,不知所谓时,你可以通过以下修定,将英文提示,变为中文提示,这样会员就不会心慌意乱啦——

修改文件:inclide/fileter.inc.php,大约19行左右

代码如下:

if($cfg_notallowstr!='' && eregi($cfg_notallowstr,$svar))
{
preg_match_all("@{$cfg_notallowstr}@",$svar,$me);
$me = array_unique($me[0]);
$notallowkeys = '';
foreach($me as $v){
$notallowkeys .= $v . ', ';
}
$msg = '您发布的内容中带有不被允许的文字 :' . $notallowkeys;
ShowMsg($msg,'-1');
exit();
}

文件修改后,上传替换即可。

Atas ialah kandungan terperinci 织梦dedecms 提示 body has not allow words怎么办. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn