如何去掉dedecms自带广告以及Power by dedecms
打开 /include/taglib/flinktypelibphp 文件(打开栏目include的栏目下的taglib栏目下的flinktypelibphp 文件)
用ctrl+f找到
$dedecms = false; $dedecms->id = 999; $dedecms->typename = '织梦链'; if($type == 'dedecms') $row[] = $dedecms;
这几句代码
然后注释或者直接删去,然后保存即可!
文件位置:include\commonincphp
这个文件里大概453行 找到以下内容,改成自己的自定义内容。
//软件摘要信息,请不要删除本项 否则系统无法正确接收系统漏洞或升级信息
$cfg_version = 'V57_GBK_SP1';
$cfg_soft_lang = 'gb2312';
$cfg_soft_public = 'base';
$cfg_softname = '织梦内容管理系统';
$cfg_soft_enname = 'DedeCMS';
$cfg_soft_devteam = 'DedeCMS官方团队';
您好,朋友!跟版网团队很高兴能为您解答:
首先去掉dedecms自带的广告,比较便捷的解决办法是将织梦后台的广告管理中的广告全部删除即可。当然如果想要比较干净的清除的话,还需要将模板中的广告调用代码删除。
怎么去除织梦底部的 powered by dedecms版权信息:
在include/dedesqlclasssphp文件中找到第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();
$arrs2 = array();
保存文件并上传即可。
希望我的回答能够帮到您!
0条评论