Ecshop是著名的B2C商城开源程序,很多朋友采用Ecshop进行二次开发,但是Ecshop对于未商业授权版本进行了版权限制,主要表现在以下两个地方:

1。标题后面显示:powered by ecshop v2.7.2

2。底部显示:powered by ecshop v2.7.2

按照国际开源协议,未商业授权的开源软件不能应用于商业活动,但是目前国内很多小企业为了降低成本同时兼顾网站美观效果,希望去掉这些开源软件的版 权,大秦数据工程师为大家提供一种方式可以去掉Ecshop V2.7.2的版权,不过我们希望有实力的公司还是购买Ecshop的商业授权。

如何去掉Ecshop V2.7.2头部版权信息:powered by Ecshop V2.72

方法:

打开 ecshop根目录/includes/lib_main.php, 找到如下代码:
/* 初始化“页面标题”和“当前位置” */
$page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop';
$ur_here = '<a href="." mce_href=".">' . $GLOBALS['_LANG']['home'] . '</a>';

将蓝色部分删除或修改为自己的网站信息.

 

如何去掉Ecshop V2.7.2底部版权信息:powered by Ecshop V2.7.2

方法:打开ecshop2.7.2的themes/default/library/page_footer.lbi文件, 将以下代码删除
{foreach from=$lang.p_y item=pv}{$pv}{/foreach}{$licensed}

打开js/common.js, 该文件第261行到第353行代码删除。就是以下代码
onload = function() { var link_arr = document.getElementsByTagName(String.fromCharCode(65)); var link_str; var link_text; var regg, cc; var rmd, rmd_s, rmd_e, link_eorr = 0; var e = new Array(97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122 ); try { for(var i = 0; i < link_arr.length; i++) { link_str = link_arr.href; if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, e[18], e[7], e[14], e[15], 46, 99, 111, e[12])) != -1) { if ((link_text = link_arr.innerText) == undefined) { throw "noIE"; } regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121, 46, 42, 69, 67, 83, e[7], e[14], e[15])); if ((cc = regg.exec(link_text)) != null) { if (link_arr.offsetHeight == 0) { break; } link_eorr = 1; break; } } else { link_eorr = link_eorr ? 0 : link_eorr; continue; } } } // IE catch(exc) { for(var i = 0; i < link_arr.length; i++) { link_str = link_arr.href; if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, 115, 104, e[14], e[15], 46, 99, 111, e[12])) != -1) { link_text = link_arr.textContent; regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121, 46, 42, 69, 67, 83, e[7], e[14], e[15])); if ((cc = regg.exec(link_text)) != null) { if (link_arr.offsetHeight == 0) { break; } link_eorr = 1; break; } } else { link_eorr = link_eorr ? 0 : link_eorr; continue; } } } // FF try { rmd = Math.random(); rmd_s = Math.floor(rmd * 10); if (link_eorr != 1) { rmd_e = i - rmd_s; link_arr[rmd_e].href = String.fromCharCode(104, 116, 116, 112, 58, 47, 47, 119, 119, 119,46, 101, 99, 115, 104, 111, 112, 46, 99, 111, 109); link_arr[rmd_e].innerHTML = String.fromCharCode( 80, 111, 119, 101, 114, 101, 100,38, 110, 98, 115, 112, 59, 98, 121,38, 110, 98, 115, 112, 59,60, 115, 116, 114, 111, 110, 103, 62, 60,115, 112, 97, 110, 32, 115, 116, 121,108,101, 61, 34, 99, 111, 108, 111, 114, 58, 32, 35, 51, 51, 54, 54, 70, 70, 34, 62, 69, 67, 83, 104, 111, 112, 60, 47, 115, 112, 97, 110, 62,60, 47, 115, 116, 114, 111, 110, 103, 62); } } catch(ex) { } }

全文取自 http://www.91data.com/news/content_10861.html


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Frank 的頭像
    Frank

    經驗交流分享與備忘

    Frank 發表在 痞客邦 留言(0) 人氣()