最模板 - 外贸网站建设,外贸网站模板

最模板

当前位置: 首页 > 建站教程 > CMS教程 > DedeCMS教程 >

织梦怎么样删除底部的powered by dedecms

时间:2014-12-24 23:57来源: 作者: 点击:
在织梦的默认模版中都有powered by dedecms,织梦也有因为这个而出现的漏洞,想要没有这个漏洞可以删除这个powered by dedecms,其实这个代码并不只是在模版中,还有其他

在织梦的默认模版中都有powered by dedecms,织梦也有因为这个而出现的漏洞,想要没有这个漏洞可以删除这个powered by dedecms,其实这个代码并不只是在模版中,还有其他的地方。

在include/dedesql.classs.php文件中找到第588行:
$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);

改成:

$arrs1 = array();
$arrs2 = array();
保存文件并上传即可。

(责任编辑:最模板)
------分隔线----------------------------
栏目列表
推荐内容