使用 dedecms 的朋友在创建好网站后会发现网站底部会有 power by dedecms 字样的版权提示,在这里零五科技呼吁大家保留这个版权提示。那么强迫症选手要怎么去掉 power by dedecms 信息呢?以下两种两种方法可供选择:
1.通过新建自定义变量方式
进入系统管理后台—系统基本参数—点击右上角的添加新变量,输入如下图信息:
之后我们将模板中所有的{dede:global.cfg_powerby/}标签都替换成{dede:global.dede_powerby/}后,重新生成网站即可去掉 power by dedecms。
2.通过修改源代码方式
找到并打开 dedecms 根目录下的 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);
修改为:
$arrs1 = array(); $arrs2 = array();
然后重新生成网站即可去掉 power by dedecms。
声明:本文为原创文章,版权归主机之家测评所有,欢迎分享本文,转载请保留出处!