ecshop 2.7.2 网店程序去标题及底部Powered by Ecshop版权方法

ECSHOP2.7.2 本来是个不错的网店程序,但由于版权多出加密,有些需要去除版权的朋友会碰到一些困难,本人特整理分享最新版ecshop去处版权方法给大家分享:

1.删除顶部标题栏"Powered by Ecshop"信息:
使用文本编辑器(推荐Dreamweaver,UltraEdit,记事本编辑容易出错请勿用)打开 ecshop根目录/includes/lib_main.php, 找到如下代码:
/* 初始化“页面标题”和“当前位置” */
$page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop';
在这一句的Powered by ECShop就是标题栏的版权部分,可以删除或者改成你自己想显示的其他文字内容

2 .细心的朋友可能发现,按第一点删改版权后ECshop像发疯一样会在页面上随机出现Powered by ECShop文字,这是因为康盛公司的防盗版措施,我们还需要这一步骤操作

找到js/common.js文件
该文件第261行到第353行代码删除。就是以下代码

1    onload = function()

2 {

3 var link_arr = document.getElementsByTagName(String.fromCharCode(65));

4 var link_str;

5 var link_text;

6 var regg, cc;

7 var rmd, rmd_s, rmd_e, link_eorr = 0;

8 var e = new Array(97, 98, 99,

9                   100, 101, 102, 103, 104, 105, 106, 107, 108, 109,

10                   110, 111, 112, 113, 114, 115, 116, 117, 118, 119,

11                   120, 121, 122

12                   );

13    try

14    {

15 for(var i = 0; i < link_arr.length; i++)

16 {

17    link_str = link_arr.href;

18    if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, e[18], e[7], e[14],

19                                           e[15], 46, 99, 111, e[12])) != -1)

20    {

21        if ((link_text = link_arr.innerText) == undefined)

22        {

23          throw "noIE";

24        }

25        regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121,

26 46, 42, 69, 67, 83, e[7], e[14], e[15]));

27        if ((cc = regg.exec(link_text)) != null)

28        {

29       if (link_arr.offsetHeight == 0)

30       {

31          break;

32       }

33       link_eorr = 1;

34       break;

35        }

36    }

37    else

38    {

39        link_eorr = link_eorr ? 0 : link_eorr;

40        continue;

41    }

42 }

43    } // IE

44    catch(exc)

45    {

46 for(var i = 0; i < link_arr.length; i++)

47 {

48    link_str = link_arr.href;

49    if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, 115, 104, e[14],

50                                               e[15], 46, 99, 111, e[12])) != -1)

51    {

52        link_text = link_arr.textContent;

53        regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121,

54 46, 42, 69, 67, 83, e[7], e[14], e[15]));

55        if ((cc = regg.exec(link_text)) != null)

56        {

57       if (link_arr.offsetHeight == 0)

58       {

59          break;

60       }

61       link_eorr = 1;

62       break;

63        }

64    }

65    else

66    {

67        link_eorr = link_eorr ? 0 : link_eorr;

68        continue;

69    }

70 }

71    } // FF

72    try

73    {

74 rmd = Math.random();

75 rmd_s = Math.floor(rmd * 10);

76 if (link_eorr != 1)

77 {

78    rmd_e = i - rmd_s;

79    link_arr[rmd_e].href = String.fromCharCode(104, 116, 116, 112, 58, 47, 47, 119, 119,

80 119,46,

81                                                    101, 99, 115, 104, 111, 112, 46, 99, 111,

82 109);

83    link_arr[rmd_e].innerHTML = String.fromCharCode(

84                                     80, 111, 119, 101, 114, 101, 100,38, 110, 98, 115, 112,

85 59, 98,

86                                     121,38, 110, 98, 115, 112, 59,60, 115, 116, 114, 111,

87 110, 103,

88                                     62, 60,115, 112, 97, 110, 32, 115, 116, 121,108,101, 61,

89 34, 99,

90                                     111, 108, 111, 114, 58, 32, 35, 51, 51, 54, 54, 70, 70,

91 34, 62,

92                                     69, 67, 83, 104, 111, 112, 60, 47, 115, 112, 97, 110,

93 62,60, 47,

94                                     115, 116, 114, 111, 110, 103, 62);

95 }

96    }

97    catch(ex)

98    {

99    }

100 }

3打开模板文件,例如默认的模板page_footer.lbi

位于模板文件夹的 library/page_footer.lbi

删除 {foreach from=$lang.p_y item=pv}{$pv}{/foreach}{$licensed}

4.上面的3步操作基本上完成了基本版权的去处,至于友情链接上的ecshop是在后台的友情链接项目内,自己修改或删除即可。logo也是在后台网店设置里面,上传你自己的logo.gif文件会把默认的ecshop logo替换掉。
  

你可能感兴趣的:(程序,ecshop,休闲,版权,网店)