織夢dedecms如何去掉或刪除power by dedecms的方法如下:
如果你的網頁中出現power by dedecms,或power by xxx。你就去找include/目錄下的dedesql.class.php。然後打開。
然後查看程式碼(最好是用dreamweaver這樣的編輯器,會顯示頁碼)。
在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);
把這段程式碼直接刪除或註解掉,儲存上傳覆蓋,然後更新網頁,就可以去掉網頁中出現power by dedecms了。
更多DedeCMS相關技術文章,請造訪DedeCMS教學專欄進行學習!
以上是怎麼去掉dedecms網頁中出現的版權標籤的詳細內容。更多資訊請關注PHP中文網其他相關文章!