织梦网站去除版权信息中的powered by dedecms,这个问题是织梦开发必须处理的问题。但这句代码并不在模板中体现,所以新手很难找到在哪里修改。

其实很简单,我们找到定义这个变量的脚本文件并删除掉相关代码即可。

打开网站文件目录,找到文件 \include\dedesql.class.php 
大概在588行 ,删除或者前面加双斜杠“ // ”注释掉这些代码,这样网站前台的织梦版权信息 powered by DedeCMS _V57_UFT8_SP1就消失了。

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