做贼心虚——当看到网站页面中出现power by dedecms,哥的心里总感觉虚得慌。为何在使用dedecms时,自己并不想让别人知道该网站是用dedecms做的呢?是为了网站安全考虑不透露信息,还是不想让人知道你用的仅是开源系统,low逼了一地!
一些用wordpress搭建的网站,常看到网页底部有一行字或配小图,大意是:自豪地使用wordpress来进行创作。而作为具备同样功能的dedecms,大伙儿一边用一边却要欲盖弥彰,二者的命运真是不可同日而语,让人唏嘘呀。
话不多说。看:织梦dedecms如何去掉或删除power by dedecms。
解决方法很简单,如果你的网页中出现power by dedecms,或power by xxx。你就去找include/目录下的dedesql.class.php。然后打开。
然后查看代码(最好是用dreamweaver这样的编辑器,会显示页码)。
在include/dedesql.class.php文件会多出第588到第592行的那几段代码(也可以复制以下一小段代码进行搜索),代码大致如下:
$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);
然后,就简单了,把这段代码直接删除或注释掉,保存上传覆盖,然后更新网页。