最新消息: 新版网站上线了!!!

dede 底部官方版权链接的处理办法

网站底部多出一个Power by DedeCms的超链接版权信息,修改footer.htm不管用,修改其他页面的.htm也不管用。
处理办法: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);
//特殊操作if(isset($GLOBALS['arrs1'])){    $v1 = $v2 = '';    for($i=0;isset($arrs1[$i]);$i++)    {        $v1 .= chr($arrs1[$i]);
    }    for($i=0;isset($arrs2[$i]);
$i++)    {        $v2 .= chr($arrs2[$i]);
   }    $GLOBALS[$v1] .= $v2;
}   
找到这段代码后我们把这段代码删除,再更新文章页面,会发现页面底部多出的Power by DedeCms也被去除了,看来就是这段代码导致调用的cfg_powerby后面会自动添加版权链接。

转载请注明:谷谷点程序 » dede 底部官方版权链接的处理办法