DedeCMS去掉powered by dedecms网站版权信息的方法

百句空言,不如一个行动。凡事回归原点,不懂就不懂,努力学习;懂了也要相信人外有人,放下架子,谦虚,能力提升方可最大化!

织梦dedecms调用网站版权信息是会出现powered by dedecms链接到www.dedecms.com这个网址,站在优化角度上来说,这种单向链出链接对我们来说多少有些不利,这里也是用织梦建站我们手动修改的一个地方,下面说说好代码教程:

去掉powered by dedecms网站版权信息好代码教程:

找到include/dedesql.class.php文件,用Notepad++或者DW(Dreamweaver)打开文件。

Ctrl+f查找$arrs1 = array应该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(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);
	

然后覆盖原来文件即可,这样dedecms程序建站调用网站版权信息的时候就不会出现powered by dedecms和链接了。

以上就是DedeCMS去掉powered by dedecms网站版权信息的方法。工作的质量,决定生活的质量,能力比金钱重要万倍。更多关于DedeCMS去掉powered by dedecms网站版权信息的方法请关注haodaima.com其它相关文章!

您可能有感兴趣的文章
dedecms如何实现任意页面调用当前会员信息的方

DedeCMS织梦判断是否有二级栏目输出HTML代码

织梦dedecms dede:arclist输出取消换行符

dedecms文章添加字段填栏目id,内容页调用字段里的栏目文章

dedeCMS首页列表页文章页调用tag的方法