• 记录生活,发现同好!--个人生活点滴记录博客

去掉织梦cms底部的Powered by DedeCms

个人博客吧 次浏览

在用dedecms建站时,打开首页,在网站的底部(如下图1)会看到一个Power by DedeCms超链接的版权信息,这是dedecms系统默认指向织梦cms官方网站的链接。这个链接是模板footer.htm里调用标签{dede:global.cfg_powerby/}加上的(如下图2)。可以把{dede:global.cfg_powerby/}删除即可。当然也可以通过网站根目录下修改include/dedesql.class.php的文件。通过ftp传送dedesql.class.php到本地打开,找到如下代码注释掉或直接删除都可以。

$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);

Power by DedeCms

dedecms列表页底部模板

dedecms代码注释

如果你觉得实在影响美观或者怕导出权重,可以在底部信息留个powered by dedecms 不带超链接。


本文由MAOLAI博客编辑整理发布,欢迎分享,转载请注明出处!