织梦cms中如何去除底部版权中自带的Power by DedeCms

浏览: 2,110 次 --

形成原因

织梦官方5.7版本升级后,网站前端页面底部版权标签{dede:global name=’cfg_powerby’/}调用出来后会多出一串字符:“powered by dedecms”,此链接指向织梦官网。从尊重版权角度,应保留此链接,如果感觉影响美观,或者担心导出权重,可以采用以下解决方法移除。

版权网站前端显示

解决方法

1.打开网站根目录下的include文件夹,找到文件“dedesql.class.php”。

2.在dedesql.class.php文件中588—593行找到如下代码。

$arrs1 = array(0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79);
$arrs2 = array(0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,
0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72,
0x67,0x65,0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20,
0x62,0x79,0x20,0x44,0x65,0x64,0x65,0x43,0x6d,0x73,0x3c,0x2f,0x61,0x3e);

3.将以上代码用/*   */注释掉。

dedesql.class.php中588行注释掉此代码

4.将修改完成的dedesql.class.php文件,上传覆盖原有文件。

5.登录网站后台,生成网站,刷新后,底部自带的Power by DedeCms代码就移除了。