<code id='E4F1E433A6'></code><style id='E4F1E433A6'></style>
    • <acronym id='E4F1E433A6'></acronym>
      <center id='E4F1E433A6'><center id='E4F1E433A6'><tfoot id='E4F1E433A6'></tfoot></center><abbr id='E4F1E433A6'><dir id='E4F1E433A6'><tfoot id='E4F1E433A6'></tfoot><noframes id='E4F1E433A6'>

    • <optgroup id='E4F1E433A6'><strike id='E4F1E433A6'><sup id='E4F1E433A6'></sup></strike><code id='E4F1E433A6'></code></optgroup>
        1. <b id='E4F1E433A6'><label id='E4F1E433A6'><select id='E4F1E433A6'><dt id='E4F1E433A6'><span id='E4F1E433A6'></span></dt></select></label></b><u id='E4F1E433A6'></u>
          <i id='E4F1E433A6'><strike id='E4F1E433A6'><tt id='E4F1E433A6'><pre id='E4F1E433A6'></pre></tt></strike></i>

          当前位置:首页 > 织梦inclpc28官网在线ude庄闲官网平台官方\ckeditor\ckeditor >

          织梦inclpc28官网在线ude庄闲官网平台官方\ckeditor\ckeditor

          来源 大度包容网
          2025-06-22 03:53:44

          在用织梦CMS套用别人的模板(编码是gb2312)建站,

          织梦include\ckeditor\ckeditor_php5.php解决办法-图片1

          为了兼容PHP5.4+,include/common.func.php文件可能被修改。发现添加不了,而且出现“Call to undefined function dede_htmlspecialchars()in......include\ckeditor\ckeditor_php5.php”的代码提示(如下图)。文章内庄闲官网平台官方容编辑时出现错误,pc28官网在线或者复制如下代码到txt文本,在后台添加栏目、上传覆盖原来的就可以了。在这个函数的上面添加如下代码(记得用英语小写哦,可以通过FTP传送pc28官网在线庄闲官网平台官方本地打开/include/common.func.php中文件,搜索“function RunApp”,再从txt文本复制到添加的地方)即可:

          function dede_htmlspecialchars($str) {

          global $cfg_soft_lang;

          if (version_compare(PHP_VERSION, '5.4.0', '<')) return htmlspecialchars($str);

          if ($cfg_soft_lang=='gb2312') return htmlspecialchars($str,ENT_COMPAT,'ISO-8859-1');

          else return htmlspecialchars($str);}

          织梦include\ckeditor\ckeditor_php5.php解决办法-图片2

          最后保存,其中替换了include/common.func.php这个原文件。