您當前的位置:首頁 > 后端程序 > 織夢建站 織夢建站

織夢dede如何去除底部Power by DedeCms

發布時間:03-30  來源:云動網絡  作者:云動  點擊:

   今天在使用{dede:global.cfg_powerby/} 這個標簽的時候發現網站底部除了自己添加的版權信息外,還多了一句Power by DedeCms 而且還加了鏈接,這對網站優化肯定不好,所以想辦法去掉它。

  自己通過查找資料發現了有兩個方法:
  1.自己新建一個變量,不用這個默認的。
  2.就是找到源碼刪掉 Power by DedeCms 這句話。這個怎么刪呢?在include/dedesql.class.php 文件的587到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);
  這段代碼給刪掉,或者注釋掉都可以,這樣我們再看底部版權,發現已經正常了,沒有Power by DedeCms這句話了。
更多
足彩胜负彩玩法2场